summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-12-08 02:19:13 +0100
committermkanat%bugzilla.org <>2009-12-08 02:19:13 +0100
commitc0b214bc396fe0db56fad1757c33ce640cc8aea7 (patch)
tree7e8266502d6fb06d0937bbd4c4745d4f2eef4663 /template/en/default/global
parenteb6a2a89a7d28ad7de06ab769900b12b951782c9 (diff)
downloadbugzilla-c0b214bc396fe0db56fad1757c33ce640cc8aea7.tar.gz
bugzilla-c0b214bc396fe0db56fad1757c33ce640cc8aea7.tar.xz
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
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/user-error.html.tmpl24
1 files changed, 13 insertions, 11 deletions
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index c3e84c0ab..7dea01452 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -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" %]