Closed Bug 797680 Opened 12 years ago Closed 12 years ago

"Reset Assignee to default" and "Reset QA Contact to default" should only be checked when the assignee/qa-contact is the default

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: glob, Assigned: glob)

Details

(Keywords: selenium)

Attachments

(1 file)

Attached patch patch v1Splinter Review
+++ This bug was initially created as a clone of Bug #713796 +++ 1. Pick an open bug that's assigned to an actual person. 2. Select another component to move it to. 3. Look at the "Reset Assignee to default" checkbox that appears after step 2. Result: it's checked Expected: it should be unchecked
Attachment #667808 - Flags: review?(LpSolit)
Comment on attachment 667808 [details] [diff] [review] patch v1 >+ if (document.getElementById('qa_contact') >+ && document.getElementById('qa_contact').value == defaults[1]) If someone cleared the QA contact, shouldn't we reset it too? In that case, the test above would become: if (!document.getElementById('qa_contact') || document.getElementById('qa_contact').value == defaults[1]) Anyway, your patch looks good and works fine. r=LpSolit in all cases.
Attachment #667808 - Flags: review?(LpSolit) → review+
Status: NEW → ASSIGNED
Flags: approval4.4+
Flags: approval+
Target Milestone: --- → Bugzilla 4.4
(In reply to Frédéric Buclin from comment #1) > If someone cleared the QA contact, shouldn't we reset it too? the qa_contact field gets the same treatment as the assignee field. the first part of that condition looks for the existence of the field (for instances where the qa_contact field is disabled). Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/ modified js/field.js modified template/en/default/bug/edit.html.tmpl Committed revision 8437. Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/4.4/ modified js/field.js modified template/en/default/bug/edit.html.tmpl Committed revision 8426.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Flags: testcase+
Keywords: selenium
Added to relnotes for 4.4.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: