From 1dc246008f287819da7ad9107e87a5bd967dbdae Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Fri, 30 Sep 2011 16:55:05 -0400 Subject: [PATCH] Fix "0 holds created" message on successful hold Caused by results not always being an array. Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/server/patron/place_hold.js | 3 +++ 1 file changed, 3 insertions(+) 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 4c57453ab7..5f6c1035be 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 = {}; -- 2.43.2