[open-ils-commits] r17468 - branches/rel_2_0/Open-ILS/xul/staff_client/server/patron (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Sep 3 09:37:32 EDT 2010


Author: erickson
Date: 2010-09-03 09:37:30 -0400 (Fri, 03 Sep 2010)
New Revision: 17468

Modified:
   branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/util.js
Log:
back-port: 17467 => users with no transaction history will have no xact summary; protect

Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/util.js	2010-09-03 13:36:11 UTC (rev 17467)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/patron/util.js	2010-09-03 13:37:30 UTC (rev 17468)
@@ -650,7 +650,8 @@
 
         JSAN.use('util.network'); var net = new util.network();
         net.simple_request('FM_MOUS_RETRIEVE.authoritative',[ ses(), patron.id() ], function(req) {
-            if (req.getResultObject().balance_owed() > 0) addCSSClass(document.documentElement,'PATRON_HAS_BILLS');
+            var summary = req.getResultObject();
+            if (summary && summary.balance_owed() > 0) addCSSClass(document.documentElement,'PATRON_HAS_BILLS');
         });
         net.simple_request('FM_CIRC_COUNT_RETRIEVE_VIA_USER.authoritative',[ ses(), patron.id() ], function(req) {
             try {



More information about the open-ils-commits mailing list