From 091803186027a52d98a365fc47cb886ca132382e Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 3 Sep 2010 13:36:11 +0000 Subject: [PATCH] users with no transaction history will have no xact summary; protect git-svn-id: svn://svn.open-ils.org/ILS/trunk@17467 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js index 805818f51..bc5a6d02b 100644 --- a/Open-ILS/xul/staff_client/server/patron/util.js +++ b/Open-ILS/xul/staff_client/server/patron/util.js @@ -650,7 +650,8 @@ patron.util.set_penalty_css = function(patron) { 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 { -- 2.11.0