Commit c0b214bc authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 518024: Make quicksearch accept any field name or any unique starting substring of a fieldname

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent eb6a2a89
......@@ -1400,18 +1400,20 @@
characters long.
[% ELSIF error == "quicksearch_unknown_field" %]
[% title = "Unknown QuickSearch Field" %]
[% IF fields.unique.size == 1 %]
Field <code>[% fields.first FILTER html %]</code> is not a known field.
[% ELSE %]
Fields
[% FOREACH field = fields.unique.sort %]
<code>[% field FILTER html %]</code>
[% ', ' UNLESS loop.last() %]
[% END %]
are not known fields.
[% title = "QuickSearch Error" %]
There is a problem with your search:
[% FOREACH field = unknown %]
<p><code>[% field FILTER html %]</code> is not a valid field name.</p>
[% END %]
[% FOREACH field = ambiguous.keys %]
<p><code>[% field FILTER html %]</code> matches more than one field:
[%+ ambiguous.${field}.join(', ') FILTER html %]</p>
[% END %]
[% IF unknown.size %]
<p>The legal field names are
<a href="page.cgi?id=quicksearchhack.html">listed here</a>.</p>
[% END %]
The legal field names are <a href="page.cgi?id=quicksearchhack.html">listed here</a>.
[% ELSIF error == "reassign_to_empty" %]
[% title = "Illegal Reassignment" %]
......
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