[open-ils-commits] [GIT] Evergreen ILS branch master updated. 1dc246008f287819da7ad9107e87a5bd967dbdae

Evergreen Git git at git.evergreen-ils.org
Thu Oct 6 12:53:13 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, master has been updated
       via  1dc246008f287819da7ad9107e87a5bd967dbdae (commit)
      from  0db5e112ffda7099c3209d33d12bc2a42153a4f0 (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 1dc246008f287819da7ad9107e87a5bd967dbdae
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Fri Sep 30 16:55:05 2011 -0400

    Fix "0 holds created" message on successful hold
    
    Caused by results not always being an array.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/xul/staff_client/server/patron/place_hold.js b/Open-ILS/xul/staff_client/server/patron/place_hold.js
index 4c57453..5f6c103 100644
--- a/Open-ILS/xul/staff_client/server/patron/place_hold.js
+++ b/Open-ILS/xul/staff_client/server/patron/place_hold.js
@@ -74,6 +74,9 @@ function handle_results(req) {
         $('progress_meter').hidden = true;
 
         var results = req.getResultObject();
+        if(typeof(results.length) != "number") {
+            results = [results];
+        }
 
         var successes = [];
         var failures = {};

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

Summary of changes:
 .../xul/staff_client/server/patron/place_hold.js   |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list