From: phasefx Date: Fri, 24 Jul 2009 19:20:06 +0000 (+0000) Subject: check for errors on the bills request X-Git-Tag: sprint4-merge-nov22~9615 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d875972cd5c5130867c8f9b2ae56fb81bd037125;p=working%2FEvergreen.git check for errors on the bills request git-svn-id: svn://svn.open-ils.org/ILS/trunk@13729 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index a3d6956c1b..31fbcbdba1 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -39,7 +39,7 @@ patron.bills.prototype = { obj.SHOW_ME_THE_BILLS, [ ses(), obj.patron_id ] ); - //alert('obj.bills = ' + js2JSON(obj.bills)); + if (typeof obj.bills.ilsevent != 'undefined' || typeof obj.bills == 'null') { throw(obj.bills); } for (var i = 0; i < obj.bills.length; i++) { if (instanceOf(obj.bills[i],mobts)) { @@ -668,6 +668,7 @@ patron.bills.prototype = { obj.SHOW_ME_THE_BILLS, [ ses(), obj.patron_id ] ); + if (typeof obj.bills.ilsevent != 'undefined' || typeof obj.bills == 'null') { throw(obj.bills); } for (var i = 0; i < obj.bills.length; i++) { if (instanceOf(obj.bills[i],mobts)) { obj.bills[i] = { 'transaction' : obj.bills[i] }