From: phasefx Date: Thu, 30 Dec 2010 16:29:53 +0000 (+0000) Subject: fix a bug with standing penalties and the stop sign page. We still have a race condi... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8a65a0bbec62a563cc0ecbe8792d12868057fbc5;p=contrib%2FConifer.git fix a bug with standing penalties and the stop sign page. We still have a race condition where the stop sign page may not show, and this seems to happen when multiple patrons are retrieved at once from a patron search. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19084 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index fad8d2959c..3f2a013027 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -947,7 +947,7 @@ patron.display.prototype = { obj.stop_checkouts = true; } } - var penalties = obj.patron.standing_penalties(); + var penalties = patron.standing_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 */) {