[Koha-bugs] [Bug 21241] Set suggestion notices message_transport_type to sms if syspref is enabled and patron has an smsalertnumber but no email address
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 26 21:49:55 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21241
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|Passed QA |Failed QA
CC| |nick at bywatersolutions.com
--- Comment #17 from Nick Clemens <nick at bywatersolutions.com> ---
Please make the statement idempotent (INSERT IGNORE)
Add the pref to sysprefs.sql for new installs
I think the conditional can be further simplified:
- my $transport = 'email';
- if (C4::Context->preference("FallbackToSMSIfNoEmail")) {
- $transport = ($patron->smsalertnumber) && (!$patron->email) ?
'sms' : 'email';
- }
+ my $transport = (C4::Context->preference("FallbackToSMSIfNoEmail")) &&
($patron->smsalertnumber) && (!$patron->email) ? 'sms' : 'email';
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list