When clearing expired holds grab the last response user/tsbere/fix_hold_issues
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 10 Aug 2012 16:00:00 +0000 (12:00 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 10 Aug 2012 16:00:00 +0000 (12:00 -0400)
Apparently multiple can come down if you have 25+ expired holds.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/xul/staff_client/server/patron/holds.js

index 34210ce..d698e19 100644 (file)
@@ -1872,6 +1872,8 @@ patron.holds.prototype = {
                     obj.filter_lib || obj.data.list.au[0].ws_ou()
                 ]
             );
+            if (robj[0])
+                robj = robj.pop();
             if (typeof robj.ilsevent != 'undefined') { throw(robj); }
             if (typeof robj.cache_key == 'undefined') { throw(robj); }