[open-ils-commits] r19225 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 19 17:28:19 EST 2011
Author: phasefx
Date: 2011-01-19 17:28:13 -0500 (Wed, 19 Jan 2011)
New Revision: 19225
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
whack-a-mole, was getting a null instead of an empty array here, but may be a red herring
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2011-01-19 22:28:02 UTC (rev 19224)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2011-01-19 22:28:13 UTC (rev 19225)
@@ -948,6 +948,7 @@
}
}
var penalties = patron.standing_penalties();
+ if (!penalties) { penalties = []; }
var dl_flag_opened = false;
for (var i = 0; i < penalties.length; i++) {
if (penalties[i].standing_penalty().block_list() || penalties[i].standing_penalty().id() == 20 /* ALERT_NOTE */) {
More information about the open-ils-commits
mailing list