]> git.koha-community.org Git - koha.git/commit
Bug 23765: Do not display localized templates if TranslateNotices is off
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Nov 2019 10:41:29 +0000 (11:41 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 15 Nov 2019 12:43:02 +0000 (13:43 +0100)
commitb9dbe40cfb0b9842273ceedc13c9592bb4ca1aff
tree6af3e4c8ef64fdef0308f897817217751c425189
parent556aa6f65eec6cde5697e4af58da8b35dcddc8b9
Bug 23765: Do not display localized templates if TranslateNotices is off

To test:
1. Enable multi-languages
2. Set the preference 'TranslateNotices' on  'Allow'
3. Go to: tools==>Notices & slips==>Edit, make sure it has multilingual
email templates.
4. Set the preference TranslateNotices on 'Don't allow'.
5. Go to: tools==>Notices & slips==>Edit, the template shows several tab
for the same transport type.
6. Apply the patch.
7. Repeat the steps 4 and 5
8. Success. It only shows the default template when TranslateNotices is
'Dont allow'.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 86f999812e1fb281742d79757964227ea0f5d330)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Letters.pm
t/db_dependent/Letters/GetLetterTemplates.t