When editing a simple search, the bug status is lost

RESOLVED FIXED in Bugzilla 3.6

Status

()

Bugzilla
Query/Bug List
--
minor
RESOLVED FIXED
12 years ago
8 years ago

People

(Reporter: Carsten Dreesbach, Assigned: Frédéric Buclin)

Tracking

2.22
Bugzilla 3.6
Bug Flags:
approval4.0 +
approval3.6 +

Details

(Whiteboard: [4.1 not affected; 4.0 and older only])

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

I have a saved search called "All bugs". It uses the "Find a specific bug" tab and specifies "All" for Status and "All" for Products, no words.

When I go to edit this search, the Status field is back to "Open".

Reproducible: Always

Steps to Reproduce:
1. Save a search as described above
2. Run search, click on "Edit Search"
3. See the Status field filled incorrectly with "Open" instead of "All"

Actual Results:  
Comes back with "Open" in the status field

Expected Results:  
Should have had the "All" option selected
(Reporter)

Comment 1

12 years ago
Dangit, forgot to add the version of Bugzilla I'm using! Running 2.22 on Windows Server 2003 R2 with ActivePerl 5.8.8.817.

Updated

12 years ago
Version: unspecified → 2.22
(Assignee)

Comment 2

12 years ago
I can reproduce the bug on 2.23 too. The product and word given are correctly set, but the status isn't.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Other → All
Hardware: PC → All

Comment 3

12 years ago
I encounter a similar behaviour on Bugzilla 2.22 - when I search for (e.g Closed) bugs using a "Find a Specific Bug" tab of a query.cgi page and then on a "Bug List" page follow a link "Edit Search", the URL query contains a set of bug_status key/value pairs as replaced by Bugzilla/Search.pm, e.g:

http://.../query.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&...

My older Bugzilla 2.20 seems to work fine - the resulting URL query contains an original bug_status key/value pair:

http://.../query.cgi?query_format=specific&bug_status=__closed__&...
(Assignee)

Comment 4

8 years ago
Note that editing a quicksearch is broken too.
(Assignee)

Updated

8 years ago
Keywords: qawanted
(Assignee)

Comment 5

8 years ago
Created attachment 483745 [details] [diff] [review]
patch, v1

We now store and restore bug_status manually when doing a specific search. Bugzilla 4.1 is not affected thanks to the refactoring mkanat did.
Assignee: query-and-buglist → LpSolit
Status: NEW → ASSIGNED
Attachment #483745 - Flags: review?(mkanat)
(Assignee)

Updated

8 years ago
Keywords: qawanted
Whiteboard: [4.1 not affected; 4.0 and older only]
Target Milestone: --- → Bugzilla 3.6

Updated

8 years ago
Attachment #483745 - Flags: review?(mkanat) → review+

Updated

8 years ago
Flags: approval4.0+
Flags: approval3.6+
(Assignee)

Comment 6

8 years ago
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified buglist.cgi
Committed revision 7445.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/3.6/
modified buglist.cgi
Committed revision 7190.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
Summary: Edit saved simple search does not remember "All" Status option → When editing a simple search, the bug status is lost
You need to log in before you can comment on or make changes to this bug.