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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-4 / +9 lines)
Lines 120-129 Link Here
120
        <ol>
120
        <ol>
121
            <li>
121
            <li>
122
                <label for="browsecategory">Category: </label>
122
                <label for="browsecategory">Category: </label>
123
                <select id="browsecategory" name="browsecategory">
123
                <select id="browsecategory" name="browsecategory" required="required">
124
                [% FOREACH cat IN uploadcategories %]
124
                    <option value="">Choose</option>
125
                    <option value="[% cat.code | html %]">[% cat.name | html %]</option>
125
                    [% FOREACH cat IN uploadcategories %]
126
                [% END %]
126
                        [% IF cat.code == browsecategory %]
127
                            <option value="[% cat.code | html %]" selected="selected">[% cat.name | html %]</option>
128
                        [% ELSE -%]
129
                            <option value="[% cat.code | html %]">[% cat.name | html %]</option>
130
                        [% END %]
131
                    [% END %]
127
                </select>
132
                </select>
128
            </li>
133
            </li>
129
        </ol>
134
        </ol>
(-)a/tools/upload.pl (-4 / +4 lines)
Lines 69-77 if ( $op eq 'new' ) { Link Here
69
    }
69
    }
70
70
71
    $template->param(
71
    $template->param(
72
        mode    => 'report',
72
        mode           => 'report',
73
        msg     => $msg,
73
        msg            => $msg,
74
        uploads => $uploads,
74
        uploads        => $uploads,
75
        browsecategory => $browsecategory,
75
    );
76
    );
76
    output_html_with_http_headers $input, $cookie, $template->output;
77
    output_html_with_http_headers $input, $cookie, $template->output;
77
78
78
- 

Return to bug 28175