[open-ils-commits] r19028 - trunk/Open-ILS/web/opac/common/js (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 20 13:13:47 EST 2010


Author: erickson
Date: 2010-12-20 13:13:44 -0500 (Mon, 20 Dec 2010)
New Revision: 19028

Modified:
   trunk/Open-ILS/web/opac/common/js/opac_utils.js
Log:
protect against null orig-location resulting in depth=-1 searches after logout

Modified: trunk/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/opac_utils.js	2010-12-20 17:38:41 UTC (rev 19027)
+++ trunk/Open-ILS/web/opac/common/js/opac_utils.js	2010-12-20 18:13:44 UTC (rev 19028)
@@ -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