[open-ils-commits] r11261 - branches/rel_1_2/Open-ILS/xul/staff_client/server/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 18 14:04:23 EST 2008
Author: phasefx
Date: 2008-11-18 14:04:20 -0500 (Tue, 18 Nov 2008)
New Revision: 11261
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/util.js
Log:
bug in test on whether to display the email address on the hold slip or not
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/util.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/util.js 2008-11-18 19:02:17 UTC (rev 11260)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/circ/util.js 2008-11-18 19:04:20 UTC (rev 11261)
@@ -1174,7 +1174,7 @@
msg += '\nHold for patron ' + au_obj.family_name() + ', ' + au_obj.first_given_name() + ' ' + au_obj.second_given_name() + '\n';
msg += 'Barcode: ' + au_obj.card().barcode() + '\n';
if (check.payload.hold.phone_notify()) msg += 'Notify by phone: ' + check.payload.hold.phone_notify() + '\n';
- if (check.payload.hold.email_notify()) msg += 'Notify by email: ' + (au_obj.email() ? au_obj.email() : '') + '\n';
+ if (get_bool(check.payload.hold.email_notify())) msg += 'Notify by email: ' + (au_obj.email() ? au_obj.email() : '') + '\n';
msg += '\nRequest Date: ' + util.date.formatted_date(check.payload.hold.request_time(),'%F') + '\n';
}
var rv = 0;
@@ -1260,7 +1260,7 @@
msg += '\nHold for patron ' + au_obj.family_name() + ', ' + au_obj.first_given_name() + ' ' + au_obj.second_given_name() + '\n';
msg += 'Barcode: ' + au_obj.card().barcode() + '\n';
if (check.payload.hold.phone_notify()) msg += 'Notify by phone: ' + check.payload.hold.phone_notify() + '\n';
- if (check.payload.hold.email_notify()) msg += 'Notify by email: ' + (au_obj.email() ? au_obj.email() : '') + '\n';
+ if (get_bool(check.payload.hold.email_notify())) msg += 'Notify by email: ' + (au_obj.email() ? au_obj.email() : '') + '\n';
msg += '\nRequest Date: ' + util.date.formatted_date(check.payload.hold.request_time(),'%F');
}
var rv = 0;
More information about the open-ils-commits
mailing list