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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-9 / +10 lines)
Lines 556-570 Link Here
556
            [% END %]
556
            [% END %]
557
        </optgroup>
557
        </optgroup>
558
        [% SET custom_available_options = AuthorisedValues.Get('ADD_CONT_HTML_CUSTOM') %]
558
        [% SET custom_available_options = AuthorisedValues.Get('ADD_CONT_HTML_CUSTOM') %]
559
        <optgroup label="Custom">
559
        [% IF custom_available_options.size %]
560
            [% FOREACH l IN custom_available_options %]
560
            <optgroup label="Custom">
561
                [% IF l.authorised_value == location %]
561
                [% FOREACH l IN custom_available_options %]
562
                    <option value="[% l.authorised_value | html %]" selected="selected">[% l.authorised_value | html %]</option>
562
                    [% IF l.authorised_value == location %]
563
                [% ELSE %]
563
                        <option value="[% l.authorised_value | html %]" selected="selected">[% l.authorised_value | html %]</option>
564
                    <option value="[% l.authorised_value | html %]">[% l.authorised_value | html %]</option>
564
                    [% ELSE %]
565
                        <option value="[% l.authorised_value | html %]">[% l.authorised_value | html %]</option>
566
                    [% END %]
565
                [% END %]
567
                [% END %]
566
            [% END %]
568
            </optgroup>
567
        </optgroup>
569
        [% END %]
568
    [% END %]
570
    [% END %]
569
[% END %]
571
[% END %]
570
572
571
- 

Return to bug 31642