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

(-)a/installer/data/mysql/atomicupdate/bug20074.perl (-1 / +1 lines)
Lines 1-6 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q|UPDATE auth_subfield_structure SET hidden=-5 WHERE hidden<>0|);
3
    $dbh->do(q|UPDATE auth_subfield_structure SET hidden=1 WHERE hidden<>0|);
4
    SetVersion( $DBversion );
4
    SetVersion( $DBversion );
5
    print "Upgrade to $DBversion done (Bug 20074: Auth_subfield_structure changes hidden attribute)\n";
5
    print "Upgrade to $DBversion done (Bug 20074: Auth_subfield_structure changes hidden attribute)\n";
6
}
6
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt (-3 / +2 lines)
Lines 112-122 Link Here
112
                                <select name="ohidden" size="1" id="ohidden[% loo.row %]">
112
                                <select name="ohidden" size="1" id="ohidden[% loo.row %]">
113
                                    [%- IF ( loo.ohidden ==  0 ) -%]
113
                                    [%- IF ( loo.ohidden ==  0 ) -%]
114
                                    <option value= "0" selected="selected">Show all</option>
114
                                    <option value= "0" selected="selected">Show all</option>
115
                                    <option value="-5">Hide all</option>
115
                                    <option value="1">Hide all</option>
116
                                    [%- ELSE -%]
116
                                    [%- ELSE -%]
117
                                    [%# All other non-zero values mean: Hide %]
117
                                    [%# All other non-zero values mean: Hide %]
118
                                    <option value= "0">Show all</option>
118
                                    <option value= "0">Show all</option>
119
                                    <option value="-5" selected="selected">Hide all</option>
119
                                    <option value="1" selected="selected">Hide all</option>
120
                                    [%- END -%]
120
                                    [%- END -%]
121
                                </select>
121
                                </select>
122
                            </li>
122
                            </li>
123
- 

Return to bug 20074