View | Details | Raw Unified | Return to bug 34075
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_34075.pl (-1 / +1 lines)
Lines 8-14 return { Link Here
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do(q{
9
        $dbh->do(q{
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
11
            ('DefaultAuthorityTab','0','0|1|2|3|4|5|6|7|8|9','Default tab to shwo when displaying authorities','Choice')
11
            ('DefaultAuthorityTab','0','0|1|2|3|4|5|6|7|8|9','Default tab to show when displaying authorities','Choice')
12
        });
12
        });
13
        say $out "Added new system preference 'DefaultAuthorityTab'";
13
        say $out "Added new system preference 'DefaultAuthorityTab'";
14
    },
14
    },
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt (-2 / +1 lines)
Lines 135-141 Link Here
135
            if( $("#authoritiestabs .tab-pane.active").length < 1 ){
135
            if( $("#authoritiestabs .tab-pane.active").length < 1 ){
136
                [% SET DefaultAuthorityTab = Koha.Preference('DefaultAuthorityTab') %]
136
                [% SET DefaultAuthorityTab = Koha.Preference('DefaultAuthorityTab') %]
137
                [% IF DefaultAuthorityTab %]
137
                [% IF DefaultAuthorityTab %]
138
                    let default_tab = "#tab" + [% DefaultAuthorityTab %] + "XX-tab";
138
                    let default_tab = "#tab" + [% DefaultAuthorityTab | html %] + "XX-tab";
139
                    let tab_object = $("#authoritiestabs "+default_tab)
139
                    let tab_object = $("#authoritiestabs "+default_tab)
140
                    if( tab_object.length > 0 ){
140
                    if( tab_object.length > 0 ){
141
                        tab_object.tab("show");
141
                        tab_object.tab("show");
142
- 

Return to bug 34075