ilsevent is no longer a number, but a string. I knew that, but missed these tests
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Oct 2010 16:08:50 +0000 (16:08 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 21 Oct 2010 16:08:50 +0000 (16:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18440 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/bibs_abreast.js
Open-ILS/xul/staff_client/server/circ/checkout.js

index d4b8648..bb477ee 100644 (file)
@@ -182,7 +182,7 @@ function merge_records() {
             ]
         );
         if (typeof robj.ilsevent != 'undefined') {
-            switch(robj.ilsevent) {
+            switch(Number(robj.ilsevent)) {
                 case 5000 /* PERM_FAILURE */: break;
                 default: throw(robj);
             }
index 88412fd..5b8f7b2 100644 (file)
@@ -952,7 +952,7 @@ circ.checkout.prototype = {
                                     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;