[open-ils-commits] r13729 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Jul 24 15:20:10 EDT 2009


Author: phasefx
Date: 2009-07-24 15:20:06 -0400 (Fri, 24 Jul 2009)
New Revision: 13729

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/bills.js
Log:
check for errors on the bills request

Modified: trunk/Open-ILS/xul/staff_client/server/patron/bills.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bills.js	2009-07-24 17:14:19 UTC (rev 13728)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bills.js	2009-07-24 19:20:06 UTC (rev 13729)
@@ -39,7 +39,7 @@
 					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 @@
 						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] }



More information about the open-ils-commits mailing list