From 5515f09194cf687e477b857407160ef18994447d 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 --- 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 fe83258dfef..a573b74f726 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 d5ad806a28d..1afe9c321e1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -135,7 +135,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.25.1