From: Thomas Berezansky Date: Fri, 10 Aug 2012 16:00:00 +0000 (-0400) Subject: When clearing expired holds grab the last response X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftsbere%2Ffix_hold_issues;p=working%2FEvergreen.git When clearing expired holds grab the last response Apparently multiple can come down if you have 25+ expired holds. Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 34210ce96c..d698e19ed3 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -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); }