From: erickson Date: Mon, 20 Dec 2010 18:13:44 +0000 (+0000) Subject: protect against null orig-location resulting in depth=-1 searches after logout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4dd1cd26bd36d4ba2b010156e43aeb7c300d230a;p=evergreen%2Fbjwebb.git 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 --- diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index 64bfc500b..9c10e2ae8 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";