[Koha-bugs] [Bug 21776] New: Set ACQ_NOTIF_ON_RECEIV notice message_transport_type to sms if syspref is enabled and patron has an smsalertnumber but no email
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 6 22:04:15 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21776
Bug ID: 21776
Summary: Set ACQ_NOTIF_ON_RECEIV notice message_transport_type
to sms if syspref is enabled and patron has an
smsalertnumber but no email
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Notices
Assignee: koha-bugs at lists.koha-community.org
Reporter: alexbuckley at catalyst.net.nz
QA Contact: testopia at bugs.koha-community.org
At present the ACQ_NOTIF_ON_RECEIV is hardcoded to always have a
message_transport_type of 'email' in C4::Acquisition::NotifyOrderUsers().
If a patron does not have an email address set then they will not receieve
these notices.
This patch utilizes the new system preference
'MessageTransportTypeFallbackToSMSIfNoPatronEmail' introduced in the patches on
bug 21241.
If this syspref is enabled then when a borrower has a smsalertnumber but no
email address the ACQ_NOTIF_ON_RECEIV notice message_transport_type will be set
to 'sms'.
If the syspref is not enabled then the notice message_transport_type will not
be set to 'sms' under any combination of conditions.
i.e. the syspref prevents an automatic fallback to using sms which could be
costly for libraries.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list