Closed Bug 454102 Opened 17 years ago Closed 17 years ago

"Resolution" menu doesn't include "EXPIRED"

Categories

(bugzilla.mozilla.org :: General, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: benc, Assigned: justdave)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

I think this problem is from the newest upgrade to bmo, the resolution selector is missing "EXPIRED". So, look at a bug that was expired, and it appears as "fixed", because it is the "menu defaults to top item because your backend value wasn't selected by the widget"... Here's the source of my page: <span id="resolution_settings"><select name="resolution" id="resolution"> <option value="FIXED">FIXED</option> <option value="INVALID">INVALID</option> <option value="WONTFIX">WONTFIX</option> <option value="DUPLICATE">DUPLICATE</option> <option value="WORKSFORME">WORKSFORME</option> <option value="INCOMPLETE">INCOMPLETE</option> </select></span> Actually, I'm about to reopen this bug, so you'll have to search for another example.
Oooh.... good catch. The current value of the bug's resolution was never in that selector before, it was just in plain text at the top of the bug. :) Here's the tricky part: setting of the resolution to EXPIRED is restricted, and we've usually done it from the backend. So the value should only show up in the select box if the bug is already set to it.
Severity: normal → major
Keywords: regression
It would be easier to add EXPIRED as a valid resolution, and assume social rules to forbird users to use it except gerv (and those allowed to use it). It's a much better solution that another local hack.
Frederic: the problem with that is that we need to communicate this social control to all Bugzilla users. Adding it to the list if it's the actual value should be a one-liner. [% "<option name="EXPIRED" selected>EXPIRED</option>" IF bug.resolution == "EXPIRED" %] or similar. Gerv
I think that makes sense. The other solutions would be messier.
(In reply to comment #3) > [% "<option name="EXPIRED" selected>EXPIRED</option>" IF bug.resolution == > "EXPIRED" %] No, this won't work. Bugzilla will reject this resolution if it isn't a legal one, even if already set on a bug.
(In reply to comment #5) > No, this won't work. Bugzilla will reject this resolution if it isn't a legal > one, even if already set on a bug. But it *is* a legal resolution. I suspect the code that excluded it from showing up in the "change resolution to" radio button got moved with the resolution select widget, without realizing that the widget needed to actually show the current value now instead of just offering something to change to.
Attached patch Patch v1Splinter Review
bingo.
Assignee: nobody → justdave
Attachment #338257 - Flags: review?(mkanat)
Attachment #338257 - Flags: review?(mkanat) → review+
OS: Mac OS X → All
Hardware: PC → All
Committing to: /var/www/html/bmo/3.2/ modified template/en/default/bug/knob.html.tmpl Committed revision 6146.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
deployed to production.
Component: Bugzilla: Other b.m.o Issues → General
Product: mozilla.org → bugzilla.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: