[open-ils-commits] r11482 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 9 17:04:23 EST 2008
Author: miker
Date: 2008-12-09 17:04:18 -0500 (Tue, 09 Dec 2008)
New Revision: 11482
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/summary.js
Log:
only test the block_list member if it is set
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2008-12-09 20:35:02 UTC (rev 11481)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2008-12-09 22:04:18 UTC (rev 11482)
@@ -120,9 +120,11 @@
if (penalties[i].standing_penalty().id() > 100) {
}
- if (penalties[i].standing_penalty().block_list().match(/RENEW/)) addCSSClass(label,'PENALTY_RENEW');
- if (penalties[i].standing_penalty().block_list().match(/HOLD/)) addCSSClass(label,'PENALTY_HOLD');
- if (penalties[i].standing_penalty().block_list().match(/CIRC/)) addCSSClass(label,'PENALTY_CIRC');
+ if (penalties[i].standing_penalty().block_list()) {
+ if (penalties[i].standing_penalty().block_list().match(/RENEW/)) addCSSClass(label,'PENALTY_RENEW');
+ if (penalties[i].standing_penalty().block_list().match(/HOLD/)) addCSSClass(label,'PENALTY_HOLD');
+ if (penalties[i].standing_penalty().block_list().match(/CIRC/)) addCSSClass(label,'PENALTY_CIRC');
+ }
e2.appendChild(row);
e2.parentNode.parentNode.hidden = false;
More information about the open-ils-commits
mailing list