Closed Bug 339270 Opened 19 years ago Closed 15 years ago

When editing a simple search, the bug status is lost

Categories

(Bugzilla :: Query/Bug List, defect)

2.22
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: carsten.dreesbach, Assigned: LpSolit)

Details

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

Attachments

(1 file)

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
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.
Version: unspecified → 2.22
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
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__&...
Note that editing a quicksearch is broken too.
Keywords: qawanted
Attached patch patch, v1Splinter Review
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)
Keywords: qawanted
Whiteboard: [4.1 not affected; 4.0 and older only]
Target Milestone: --- → Bugzilla 3.6
Attachment #483745 - Flags: review?(mkanat) → review+
Flags: approval4.0+
Flags: approval3.6+
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
Closed: 15 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.

Attachment

General

Created:
Updated:
Size: