From 6247cd9b5efec71ab61828f77c42a42bfadf25c0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 23 Jun 2023 13:03:40 +0000 Subject: [PATCH] Bug 34075: (follow-up) Fixes for QA tool errors - Added missing filter to template variable - Correct spelling in atomicupdate Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/bug_34075.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_34075.pl b/installer/data/mysql/atomicupdate/bug_34075.pl index fe83258dfe..a573b74f72 100755 --- a/installer/data/mysql/atomicupdate/bug_34075.pl +++ b/installer/data/mysql/atomicupdate/bug_34075.pl @@ -8,7 +8,7 @@ return { my ($dbh, $out) = @$args{qw(dbh out)}; $dbh->do(q{ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('DefaultAuthorityTab','0','0|1|2|3|4|5|6|7|8|9','Default tab to shwo when displaying authorities','Choice') + ('DefaultAuthorityTab','0','0|1|2|3|4|5|6|7|8|9','Default tab to show when displaying authorities','Choice') }); say $out "Added new system preference 'DefaultAuthorityTab'"; }, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index b6b624665c..cb5fca30f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -138,7 +138,7 @@ if( $("#authoritiestabs .tab-pane.active").length < 1 ){ [% SET DefaultAuthorityTab = Koha.Preference('DefaultAuthorityTab') %] [% IF DefaultAuthorityTab %] - let default_tab = "#tab" + [% DefaultAuthorityTab %] + "XX-tab"; + let default_tab = "#tab" + [% DefaultAuthorityTab | html %] + "XX-tab"; let tab_object = $("#authoritiestabs "+default_tab) if( tab_object.length > 0 ){ tab_object.tab("show"); -- 2.39.5