[open-ils-commits] r17467 - trunk/Open-ILS/xul/staff_client/server/patron (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 3 09:36:13 EDT 2010
Author: erickson
Date: 2010-09-03 09:36:11 -0400 (Fri, 03 Sep 2010)
New Revision: 17467
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/util.js
Log:
users with no transaction history will have no xact summary; protect
Modified: trunk/Open-ILS/xul/staff_client/server/patron/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/util.js 2010-09-03 00:13:08 UTC (rev 17466)
+++ trunk/Open-ILS/xul/staff_client/server/patron/util.js 2010-09-03 13:36:11 UTC (rev 17467)
@@ -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