protect against null orig-location resulting in depth=-1 searches after logout
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Dec 2010 18:13:44 +0000 (18:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Dec 2010 18:13:44 +0000 (18:13 +0000)
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

index 64bfc50..9c10e2a 100644 (file)
@@ -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";