[% FILTER collapse %]
[% IF category_options.size %]
    [% IF category;
        category = category | lower;
       END; %]
    <label for='form_category' id="form_category_label">
        [%- loc('Category') %]
    <select name='category' id='form_category'>
        [% FOREACH cat_op IN category_options %]
        [% cat_op_lc = cat_op | lower %]
        <option value='[% cat_op | html %]'[% ' selected' IF report.category == cat_op || category == cat_op_lc || (category_options.size == 2 AND loop.last) -%]
        >[% IF loop.first %][% cat_op %][% ELSE %][% cat_op | html %][% END %]</option>
        [% END %]
    </select>
[% END %]
[% END -%]

[% FILTER collapse %]
[% IF category_options.size %]
    [% IF category;
        category = category | lower;
       END; %]
    <label for='form_category' id="form_category_label">
        [%- loc('Category') %]
    </label>
    <select name='category' id='form_category'>
        [% FOREACH cat_op IN category_options %]
        [% cat_op_lc = cat_op | lower %]
        <option value='[% cat_op | html %]'[% ' selected' IF report.category == cat_op || category == cat_op_lc || (category_options.size == 2 AND loop.last) -%]
        >[% IF loop.first %][% cat_op %][% ELSE %][% cat_op | html %][% END %]</option>
        [% END %]
    </select>
[% END %]
[% END -%]

Fix missing end label tag.
Fix missing end label tag.

This was erroneously removed in 0fe0f7e1.
