Corrections to the preceding commit
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 6 Sep 2012 21:36:02 +0000 (17:36 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 21 Sep 2012 15:07:00 +0000 (11:07 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm
Open-ILS/web/js/dojo/openils/URLVerify/SelectURLs.js
Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js

index 4b4e3ba..ea1e4f7 100644 (file)
@@ -83,12 +83,8 @@ sub verify_session {
             select => {uvu => ['id']},
             from => {
                 uvu => { # url
-                    cbrebi => { # bucket item
-                        join => { cbreb => { # bucket
-                            join => { uvs => { # session
-                                filter => {id => $session_id}
-                            }}
-                        }}
+                    uvs => { # session
+                        filter => {id => $session_id}
                     }
                 }
             }
index bd7b733..3023937 100644 (file)
@@ -72,10 +72,10 @@ if (!dojo._hasResource["openils.URLVerify.SelectURLs"]) {
                     }
                 },
                 "oncomplete": function() {
+                    module.progress_dialog.show(true);
                     module.progress_dialog.attr(
                         "title", localeStrings.REDIRECTING
                     );
-                    module.progress_dialog.show(true);
                     location.href = oilsBasePath +
                         "/url_verify/review_attempt?attempt_id=" +
                         module.attempt.id();
index 7adeb65..e97a918 100644 (file)
@@ -284,17 +284,17 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) {
                 return {"labels": labels, "columns": columns};
             },
 
-            "_getAutoFieldFields": function(fmclass) {
+            "_getAutoFieldFields": function(fmclass, path) {
                 var field_list = dojo.clone(
                     fieldmapper.IDL.fmclasses[fmclass].fields)
                 .filter(
                     function(f) { return !f.virtual && f.datatype != "link"; }
                 );
                 
-                /* Sort fields unless the class is named in grid property
+                /* Sort fields unless the path is named in grid property
                  * 'autoFieldFieldsUnsorted' (array). */
                 if (!dojo.isArray(this.autoFieldFieldsUnsorted) ||
-                        !this.autoFieldFieldsUnsorted[fmclass]) {
+                        this.autoFieldFieldsUnsorted.indexOf(path) == -1) {
                     field_list = field_list.sort(
                         function(a, b) { return a.label > b.label ? 1 : -1; }
                     );
@@ -355,7 +355,9 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) {
                             return;
                         } else {
                             dojo.forEach(
-                                self._getAutoFieldFields(beginning.fmClass),
+                                self._getAutoFieldFields(
+                                    beginning.fmClass, path
+                                ),
                                 function(field) {
                                     var would_be_path =
                                         path + "." + field.name;