From 0ec0afb8d6c81c569e71fa0573b81602aaec8a3c Mon Sep 17 00:00:00 2001 From: David Nind Date: Sun, 22 Dec 2024 21:21:28 +0000 Subject: [PATCH] Bug 38771: (follow-up) Fix the authentication log not enabled message This corrects the display of the "Log not enabled" message for the authentication module in the log viewer. If either AuthFailureLog or AuthSuccessLog system preferences are set to "Don't log": - the "Log not enabled" warning icon is now shown - clicking the triangle icon now links to the two system preferences Signed-off-by: David Nind Signed-off-by: Katrin Fischer (cherry picked from commit 86e8835da0a48ddc3a22b62722507e33e4be5ed8) Signed-off-by: Paul Derscheid --- koha-tmpl/intranet-tmpl/prog/en/includes/action-logs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/action-logs.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/action-logs.inc index 9be4131a73..318335e56c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/action-logs.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/action-logs.inc @@ -1,6 +1,6 @@ [% BLOCK translate_log_module %] [% SWITCH module %] -[% CASE 'AUTH' %]Authentication[% UNLESS Koha.Preference('AuthFailureLog') || Koha.Preference('AuthSuccessLog') %] [% END %] +[% CASE 'AUTH' %]Authentication[% UNLESS Koha.Preference('AuthFailureLog') && Koha.Preference('AuthSuccessLog') %] [% END %] [% CASE 'CATALOGUING' %]Cataloging[% UNLESS Koha.Preference('CataloguingLog') %] [% END %] [% CASE 'AUTHORITIES' %]Authorities[% UNLESS Koha.Preference('AuthoritiesLog') %] [% END %]