diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 7e38339dfb..e034eac697 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -292,7 +292,11 @@ { 'type': 'select', 'values': [% branches.json %] }, { 'type': 'select', 'values': [% locations.json %] }, { 'type': 'text' }, - { 'type': 'select', 'values': [% notforloans.json %] }, + [% IF notforloans.size %] + { 'type': 'select', 'values': [% notforloans.json %] }, + [% ELSE %] + null, + [% END %] { 'type': 'text' }, null ] @@ -388,11 +392,13 @@ options = ccodes empty_option = "All collection codes" %] - [% INCLUDE form_field_select - name="notforloan" - options = notforloans - empty_option = "All statuses" - %] + [% IF notforloans.size %] + [% INCLUDE form_field_select + name="notforloan" + options = notforloans + empty_option = "All statuses" + %] + [% END %]
[% INCLUDE form_field_select_text_block %]