summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-05-12 23:06:25 +0200
committerDylan Hardison <dylan@mozilla.com>2016-05-12 23:06:45 +0200
commit627be9de2e720f289f0b151c0057be7af0e84a72 (patch)
tree118e76d46e837a1eb016cb259f3205f40da5bc7e
parent44a2e60b4f7030a06471a03699e2a167875f250e (diff)
downloadbugzilla-627be9de2e720f289f0b151c0057be7af0e84a72.tar.gz
bugzilla-627be9de2e720f289f0b151c0057be7af0e84a72.tar.xz
Bug 1270867 - confusing error message when I was just searching for a bug
-rw-r--r--Bugzilla/Search/Quicksearch.pm1
-rw-r--r--template/en/default/global/user-error.html.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index c65fe06a8..d398910dd 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -306,6 +306,7 @@ sub _parse_line {
# only treat ' at the start or end of words as quotes
# it's easier to do this in reverse with regexes
+ $line =~ s/(\w+[:=<>!])(\s+)/'$1'$2/g;
$line =~ s/(^|\s|:)'/$1\001/g;
$line =~ s/'($|\s)/\001$1/g;
$line =~ s/\\?'/\000/g;
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 27481eac3..649e1259b 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -1662,7 +1662,7 @@
[% END %]
[% IF unknown.size %]
- <p>The legal field names are
+ <p>The valid field names are
<a href="page.cgi?id=quicksearch.html#fields">listed here</a>.</p>
[% END %]