From 4dd1cd26bd36d4ba2b010156e43aeb7c300d230a Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 20 Dec 2010 18:13:44 +0000 Subject: [PATCH] protect against null orig-location resulting in depth=-1 searches after logout git-svn-id: svn://svn.open-ils.org/ILS/trunk@19028 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/opac_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index 64bfc500b3..9c10e2ae8b 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -806,7 +806,7 @@ function doLogout() { var args = {}; args[PARAM_TERM] = ""; args[PARAM_LOCATION] = getOrigLocation(); - args[PARAM_DEPTH] = findOrgDepth(getOrigLocation()); + args[PARAM_DEPTH] = findOrgDepth(getOrigLocation() || globalOrgTree); args.page = "home"; -- 2.11.0