[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 4cbeb747844b7d883673f661f8e3bdcb62bd7d7a

Evergreen Git git at git.evergreen-ils.org
Wed Jul 20 13:20:23 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_0 has been updated
       via  4cbeb747844b7d883673f661f8e3bdcb62bd7d7a (commit)
      from  7d0b50fa1a273ba8ceaf4ea2770b73d02ca9fdb0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4cbeb747844b7d883673f661f8e3bdcb62bd7d7a
Author: Michael Peters <mrpeters at library.in.gov>
Date:   Wed Jul 20 11:09:40 2011 -0400

    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 <mrpeters at library.in.gov>
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>

diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js
index 25f4c9b..87f0ce4 100644
--- a/Open-ILS/xul/staff_client/server/circ/checkout.js
+++ b/Open-ILS/xul/staff_client/server/circ/checkout.js
@@ -740,7 +740,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;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/circ/checkout.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list