[open-ils-commits] r19029 - branches/rel_2_0/Open-ILS/web/opac/common/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 20 13:14:14 EST 2010
Author: erickson
Date: 2010-12-20 13:14:10 -0500 (Mon, 20 Dec 2010)
New Revision: 19029
Modified:
branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js
Log:
protect against null orig-location resulting in depth=-1 searches after logout
Modified: branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js 2010-12-20 18:13:44 UTC (rev 19028)
+++ branches/rel_2_0/Open-ILS/web/opac/common/js/opac_utils.js 2010-12-20 18:14:10 UTC (rev 19029)
@@ -806,7 +806,7 @@
var args = {};
args[PARAM_TERM] = "";
args[PARAM_LOCATION] = getOrigLocation();
- args[PARAM_DEPTH] = findOrgDepth(getOrigLocation());
+ args[PARAM_DEPTH] = findOrgDepth(getOrigLocation() || globalOrgTree);
args.page = "home";
More information about the open-ils-commits
mailing list