From fc82e1416297b5192cdc5a328936077ab0b55170 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 --- 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 %] -- 2.39.5