From: Michael Peters Date: Wed, 20 Jul 2011 15:09:40 +0000 (-0400) Subject: LP#647121 Event handling on override abort X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b82f69844875d05272cc6d93d90b2160f0f9acf4;p=contrib%2FConifer.git LP#647121 Event handling on override abort Discussed on IRC, phasefx discovered that several events were not being properly handled when they were empty strings. Tested and working on Evergreen 2.0.4. Signed-off-by: Michael Peters Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index c7d3813a84..11f5373a2b 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -762,7 +762,7 @@ circ.checkout.prototype = { for (var i = 0; i < test_permit.length; i++) { dump('found [' + test_permit[i].ilsevent + ']\n'); - switch(test_permit[i].ilsevent == null ? null : Number(test_permit[i].ilsevent)) { + switch(test_permit[i].ilsevent == null || test_permit[i].ilsevent == '' ? null : Number(test_permit[i].ilsevent)) { case null /* custom event */ : found_handled = true; break;