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 @@ ...@@ -90,16 +90,6 @@
</font> </font>
Please go back and try again with a more specific Please go back and try again with a more specific
name/address. 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 %] [% ELSE %]
[% IF query.value.status == 'trunc' %] [% IF query.value.status == 'trunc' %]
matched matched
...@@ -110,10 +100,12 @@ ...@@ -110,10 +100,12 @@
[% END %] [% END %]
<select name="[% field.key FILTER html %]" <select name="[% field.key FILTER html %]"
id="[% field.key FILTER html %]" id="[% field.key FILTER html %]"
[% IF query.value.users.size > 5 %] [% IF fields.${field.key}.type == 'multi' %]
multiple="multiple" size="5"> [% IF query.value.users.size > 5 %]
[% ELSE %] multiple="multiple" size="5">
multiple="multiple" size="[% query.value.users.size %]"> [% ELSE %]
multiple="multiple" size="[% query.value.users.size %]">
[% END %]
[% END %] [% END %]
[% FOREACH match = query.value.users %] [% FOREACH match = query.value.users %]
<option value="[% match.login FILTER html %]"> <option value="[% match.login 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