From: erickson Date: Fri, 3 Sep 2010 13:36:11 +0000 (+0000) Subject: users with no transaction history will have no xact summary; protect X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=091803186027a52d98a365fc47cb886ca132382e;p=evergreen%2Fbjwebb.git 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 --- 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 {