fixed error calculating the default search location
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 May 2005 22:15:56 +0000 (22:15 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 May 2005 22:15:56 +0000 (22:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@734 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/javascript/opac/MRResultPage.js

index fd86994..ddb0ff4 100644 (file)
@@ -194,8 +194,12 @@ MRResultPage.prototype.doSearch = function() {
        if(depth == null)
                depth = findOrgDepth(globalLocation.ou_type());
 
-       if(location == null || location == "undefined")
-               location = globalLocation.id();
+       if(location == null || location == "undefined") {
+               if(globalSelectedLocation)
+                       location = globalSelectedLocation.id();
+               else
+                       location = globalLocation.id();
+       }
 
        if(!stype || !string) return;