Trigger patron 'stop sign' page for the ALERT_NOTE penalty
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Feb 2010 20:35:47 +0000 (20:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 22 Feb 2010 20:35:47 +0000 (20:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15617 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index 4fa741a..8981404 100644 (file)
@@ -911,7 +911,7 @@ patron.display.prototype = {
                 }
                 var penalties = obj.patron.standing_penalties();
                 for (var i = 0; i < penalties.length; i++) {
-                    if (penalties[i].standing_penalty().block_list()) {
+                    if (penalties[i].standing_penalty().block_list() || penalties[i].standing_penalty().id() == 20 /* ALERT_NOTE */) {
                         msg += obj.OpenILS.data.hash.aou[ penalties[i].org_unit() ].shortname() + ' : ' + penalties[i].standing_penalty().label() + '<br/>';
                     }
                 }