lp#812550: Removed nulls from showing for patron penalties when no note attached...
authorSteven Callender <stevecallender@esilibrary.com>
Mon, 18 Jul 2011 20:26:13 +0000 (20:26 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 19 Jul 2011 14:30:26 +0000 (10:30 -0400)
Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

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

index 7840825..9e4ebfa 100644 (file)
@@ -954,7 +954,7 @@ patron.display.prototype = {
                         msg += '<dt>';
                         msg += obj.OpenILS.data.hash.aou[ penalties[i].org_unit() ].shortname() + ' : ' + penalties[i].standing_penalty().label() + '<br/>';
                         msg += '</dt><dd>';
-                        msg += penalties[i].note();
+                        msg += (penalties[i].note())?penalties[i].note():'';
                         msg += '</dd>';
                     }
                 }