bug in test on whether to display the email address on the hold slip or not
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Nov 2008 19:01:26 +0000 (19:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Nov 2008 19:01:26 +0000 (19:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11259 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/util.js

index a530406..cffda55 100644 (file)
@@ -2055,7 +2055,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che
                                                        msg += document.getElementById('circStrings').getFormattedString('staff.circ.utils.payload.hold.phone_notify', [check.payload.hold.phone_notify()]);
                                                        msg += '\n';
                                                }
-                                               if (check.payload.hold.email_notify()) {
+                                               if (get_bool(check.payload.hold.email_notify())) {
                                                        var payload_email = au_obj.email() ? au_obj.email() : '';
                                                        msg += document.getElementById('circStrings').getFormattedString('staff.circ.utils.payload.hold.email_notify', [payload_email]);
                                                        msg += '\n';
@@ -2185,7 +2185,7 @@ circ.util.checkin_via_barcode2 = function(session,params,backdate,auto_print,che
                                        msg += document.getElementById('circStrings').getFormattedString('staff.circ.utils.payload.hold.phone_notify', [check.payload.hold.phone_notify()]);
                                        msg += '\n';
                                }
-                               if (check.payload.hold.email_notify()) {
+                               if (get_bool(check.payload.hold.email_notify())) {
                                        var payload_email = au_obj.email() ? au_obj.email() : '';
                                        msg += document.getElementById('circStrings').getFormattedString('staff.circ.utils.payload.hold.email_notify', [payload_email]);
                                        msg += '\n';