From c0b214bc396fe0db56fad1757c33ce640cc8aea7 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Tue, 8 Dec 2009 01:19:13 +0000 Subject: Bug 518024: Make quicksearch accept any field name or any unique starting substring of a fieldname Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/global/user-error.html.tmpl | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'template/en/default/global/user-error.html.tmpl') 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 [% fields.first FILTER html %] is not a known field. - [% ELSE %] - Fields - [% FOREACH field = fields.unique.sort %] - [% field FILTER html %] - [% ', ' UNLESS loop.last() %] - [% END %] - are not known fields. + [% title = "QuickSearch Error" %] + There is a problem with your search: + [% FOREACH field = unknown %] +

[% field FILTER html %] is not a valid field name.

+ [% END %] + [% FOREACH field = ambiguous.keys %] +

[% field FILTER html %] matches more than one field: + [%+ ambiguous.${field}.join(', ') FILTER html %]

+ [% END %] + + [% IF unknown.size %] +

The legal field names are + listed here.

[% END %] - The legal field names are listed here. [% ELSIF error == "reassign_to_empty" %] [% title = "Illegal Reassignment" %] -- cgit v1.2.3-24-g4f1b