[open-ils-commits] r18440 - in trunk/Open-ILS/xul/staff_client/server: cat circ (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Oct 21 12:08:53 EDT 2010


Author: phasefx
Date: 2010-10-21 12:08:50 -0400 (Thu, 21 Oct 2010)
New Revision: 18440

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js
   trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
Log:
ilsevent is no longer a number, but a string.  I knew that, but missed these tests

Modified: trunk/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js	2010-10-21 14:55:58 UTC (rev 18439)
+++ trunk/Open-ILS/xul/staff_client/server/cat/bibs_abreast.js	2010-10-21 16:08:50 UTC (rev 18440)
@@ -182,7 +182,7 @@
             ]
         );
         if (typeof robj.ilsevent != 'undefined') {
-            switch(robj.ilsevent) {
+            switch(Number(robj.ilsevent)) {
                 case 5000 /* PERM_FAILURE */: break;
                 default: throw(robj);
             }

Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkout.js	2010-10-21 14:55:58 UTC (rev 18439)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkout.js	2010-10-21 16:08:50 UTC (rev 18440)
@@ -952,7 +952,7 @@
                                     if (typeof robj.ilsevent == 'undefined') {
                                         obj.checkout(params);
                                     } else {
-                                        switch(robj.ilsevent) {
+                                        switch(Number(robj.ilsevent)) {
                                             case 1225 /* TRANSIT_ABORT_NOT_ALLOWED */ :
                                                 alert(robj.desc);
                                             break;



More information about the open-ils-commits mailing list