The default bug view has changed. See this FAQ.

Quicksearch error pages ("foo is not a field" and friends) should still fill in search into quicksearch box

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
Search
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: Gijs, Assigned: dkl)

Tracking

Production

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
STR:

I have a bugzilla quicksearch bookmark keyword, so I can type things like:

bug prod:Firefox comp:Pref delta_ts>1d

to quickly search bugzilla.

Now if I make a typo, and type, for instance,


bug prodd:Firefox comp:Pref delta_ts>1d

I get an error page telling me:


> There is a problem with your search:
> prodd is not a valid field name.
> The legal field names are listed here.


That is all very well, but now the search I did does not appear in the quicksearch field at the top of bugzilla, and so I can't easily edit my search. I have to go into the URL bar and scan my (now URI-escaped) URI, which is a lot more hassle.

It would be nice if the failed query was still put in the quicksearch input box on the result page, even if it caused an error like this.
(Assignee)

Comment 1

2 years ago
Created attachment 8649254 [details] [diff] [review]
1195362_1.patch
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8649254 - Flags: review?(glob)
Comment on attachment 8649254 [details] [diff] [review]
1195362_1.patch

Review of attachment 8649254 [details] [diff] [review]:
-----------------------------------------------------------------

r=glob

this looks good, except you missed the quicksearch_invalid_query error on line 172.
fix on commit please.
Attachment #8649254 - Flags: review?(glob) → review+
(Assignee)

Comment 3

2 years ago
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   4d855c2..df1f6c9  master -> master
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.