]> git.koha-community.org Git - koha.git/commit
Bug 13613: Don't allow digest to be selected without a digest-able transport selected
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 22 Jan 2015 17:36:31 +0000 (12:36 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 May 2021 15:13:10 +0000 (17:13 +0200)
commite10525c444d6f003114f534d6a78d5a77daf2dc6
tree91dc3bf0aabcc51ce43c428a2bad061ba8ef0d0b
parente36f7b988043342a4a162df306d7f66b98142cfb
Bug 13613: Don't allow digest to be selected without a digest-able transport selected

By default, only the email transport is enabled. This gives the
messaging preferences the look of having email and digest and two
options. I.E. to some users it appears that you check email for single
emails, *or* you check digest for a digest email.

To help remove this possible confusion, the digest mode checkbox should
be disabled if no digest-able transports are checked for a given notice.

Test Plan:
1) Apply this patch
2) For both the staff interface and the opac, note that the digest
   checkbox is disabled any time that no digest enabled transport (
   email, sms if enabled ) is checked for the patron editor.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e95ffe8da341b44184dfe1c9b9c2c18d44ff8482)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc
koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt