Jonathan Druart
613c83f4e3
Since bug 16157, the location value is always "All" and the serial search won't return anything. Test plan: Search for some serials. Without this patch, it won't return any results With this patch applied, the result search should be consistent Reproduced with serial's "Advanced search" and search filter in left hand column. Fixed by this patch. Signed-off-by: Marc <veron@veron.ch> Advanced search works fine again. Signed-off-by: Andreas Roussos <arouss1980@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
31 lines
1 KiB
HTML
31 lines
1 KiB
HTML
[% USE AuthorisedValues %]
|
|
[%#
|
|
Parameters:
|
|
name: the name of the select element
|
|
category: the authorised value category
|
|
default: the default authorised value to select
|
|
class: the CSS class of the select element
|
|
size: the size to use for the input (generated if the authorised value category does not exist).
|
|
all: add a "All" entry
|
|
%]
|
|
|
|
[% SET avs = AuthorisedValues.GetAuthValueDropbox( category, default ) %]
|
|
[% DEFAULT
|
|
class = ''
|
|
size = 20
|
|
%]
|
|
|
|
[% IF avs %]
|
|
<select id="[% name %]" name="[% name %]" class="[% class %]" >
|
|
[% IF all %]<option value="">All</option>[% END %]
|
|
[% FOR av IN avs %]
|
|
[% IF av.default %]
|
|
<option value="[% av.value %]" selected="selected">[% av.label | html_entity %]</option>
|
|
[% ELSE %]
|
|
<option value="[% av.value %]">[% av.label | html_entity %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% ELSE %]
|
|
<input type="text" id="[% name %]" name="[% name %]" size="[% size %]" value="[% default | html_entity %]" class="[% class %]" />
|
|
[% END %]
|