search_form.xul can take and make URI query components
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / search_form.xul
index a758487..8cf6889 100644 (file)
@@ -42,8 +42,8 @@
                                var session = g.cgi.param('session');
                                var keys = g.cgi.keys();
                                var query = {};
-                               for (var i in keys) {
-                                       query[i] = g.cgi.param(i);
+                               for (var i = 0; i < keys.length; i++) {
+                                       query[keys[i]] = g.cgi.param(keys[i]);
                                }
 
                                JSAN.use('patron.search_form'); g.search_form = new patron.search_form();