Bug 34075: (follow-up) Fixes for QA tool errors

- Added missing filter to template variable
- Correct spelling in atomicupdate

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-06-23 13:03:40 +00:00 committed by Tomas Cohen Arazi
parent 537132da7b
commit 6247cd9b5e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 2 deletions

View file

@ -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'";
},

View file

@ -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");