Commit c5065860 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 216028: User::match_field() displays no warning when the maximum number of…

Bug 216028: User::match_field() displays no warning when the maximum number of matches is reached - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
parent 0c49003e
......@@ -90,16 +90,6 @@
</font>
Please go back and try again with a more specific
name/address.
[% ELSIF fields.${field.key}.type == 'single' %]
matched:<br>
<select name="[% field.key FILTER html %]"
id="[% field.key FILTER html %]">
[% FOREACH match = query.value.users %]
<option value="[% match.login FILTER html %]">
[%- match.identity FILTER html -%]
</option>
[% END %]
</select>
[% ELSE %]
[% IF query.value.status == 'trunc' %]
matched
......@@ -110,11 +100,13 @@
[% END %]
<select name="[% field.key FILTER html %]"
id="[% field.key FILTER html %]"
[% IF fields.${field.key}.type == 'multi' %]
[% IF query.value.users.size > 5 %]
multiple="multiple" size="5">
[% ELSE %]
multiple="multiple" size="[% query.value.users.size %]">
[% END %]
[% END %]
[% FOREACH match = query.value.users %]
<option value="[% match.login FILTER html %]">
[%- match.identity FILTER html -%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment