Bug 19706: (QA follow-up) Hide the collection code selector if no value is defined (for consistency)

Test plan:
0) Go to item search
1) Do have some authorized values in CCODE category -> selector of
collection is visible
2) Don't have any authorized value in CCODE category -> selector of
collection is not visible

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Josef Moravec 2017-12-17 07:24:53 +00:00 committed by Jonathan Druart
parent 0c07f63e5f
commit bdccbfcbab

View file

@ -134,7 +134,9 @@
</fieldset>
<fieldset>
[% INCLUDE form_field_select name="itype" options = itemtypes empty_option = "All item types" %]
[% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %]
[% IF ccodes.size %]
[% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %]
[% END %]
[% IF notforloans.size %]
[% INCLUDE form_field_select name="notforloan" options = notforloans empty_option = "All statuses" %]
[% END %]