Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Alex Buckley 3f7b2fa418 Bug 21241: (follow-up) Syspref to control fallback to SMS when no email is defined
This patch adds a new system preference (FallbackToSMSIfNoEmail)
which if enabled Koha will send suggestion notices by SMS if a borrower
has a defined SMSalertnumber and no email.

The use of the syspref prevents automatic fallback to sending suggestion notices as SMS when there's no defined email.

Test plan:
1. Chose a patron who has no email address set, but does have a
smsalertnumber set (this value is set in the Patron messaging
preferences section after the SMSSendDriver syspref is set)

2. Log into the OPAC with that user and submit a suggestion

3. In the staff client go to Acquisitions->Suggestions and tick the
suggestion and set its status to 'Accepted'

4. In the database query the message_queue and notice the
message_transport_type of the message is set to 'email' even though the
patron has no email address set.

5. Apply patches, restart memcached and plack

6. Check the 'FallbackToSMSIfNoEmail' syspref
is disabled

7. Repeat steps 2,3 and observe in the message_queue
table the message_transport_type = 'email'

    i.e. If the syspref is disabled then the message is still sent by email
    to borrowers with defined smsalertnumber and no email address

8. Enable the 'FallbackToSMSIfNoEmail' syspref
and repeat steps 2,3 and notice the
message_transport_type = 'sms'

    i.e. If the syspref is enabled then the message is sent by sms to
    borrowers with defined smsalertnumber and no email address

9. Repeat steps 2,3 with a patron with an email
address and no smsalertnumber trying with the 'FallbackToSMSIfNoEmail' syspref
enabled and disabled and notice in both cases the
message_transport_type = email.

    i.e. If a borrower has an email address defined the suggestion
    notice will always be sent via email

10. Repeat steps 2,3 with a patron with no email or smsalertnumber trying with the 'FallbackToSMSIfNoEmail' syspref enabled and disabled and notice in both cases the message_transport_type = email

    i.e. If the borrower has no smsalertnumber and no email defined then the
    suggestion notice will be sent by 'email'

11. Run t/db_dependent/Suggestions.t

Sponsored-By: Brimbank Libraries, Australia
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 21241: (follow-up) Renamed system preference

Sponsored-By: Brimbank Library, Australia
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-01-28 11:42:31 +00:00
..
acquisitions.pref Bug 12258: (QA follow-up) Add some missing rrrrrrs 2018-11-08 02:18:48 +00:00
admin.pref Bug 19893: Remove serialization format setting 2018-11-16 11:04:57 +00:00
authorities.pref Bug 12258: (QA follow-up) Add some missing rrrrrrs 2018-11-08 02:18:48 +00:00
cataloguing.pref Bug 21637: Fixed upercase letter in EasyAnalyticalRecords syspref 2019-01-17 02:23:28 +00:00
circulation.pref Bug 21915: Add AccountAutoReconcile syspref 2019-01-04 03:13:40 +00:00
enhanced_content.pref Bug 22030: Use preference to determine username sent to overdrive 2019-01-08 13:59:46 +00:00
i18n_l10n.pref
local_use.pref
logs.pref Bug 7403: Shorten CataloguingLog preference description 2019-01-25 16:08:45 +00:00
opac.pref Bug 21855: Changed "deprecated delete_unverified_opac_registrations.pl cronjob" to "cleanup_database" 2019-01-25 17:39:41 +00:00
patrons.pref Bug 21241: (follow-up) Syspref to control fallback to SMS when no email is defined 2019-01-28 11:42:31 +00:00
searching.pref Bug 20758: Fix for BrowseResultSelection typo 2018-10-26 16:12:46 +00:00
serials.pref
staff_client.pref Bug 20312: (QA follow-up) Make display syspref driven 2018-11-08 15:38:20 +00:00
tools.pref
web_services.pref Bug 17047: Add a third option for Mana system preference 2019-01-23 14:39:26 +00:00