User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:188.8.131.52) Gecko/2008120121 Firefox/3.0.5
Build Identifier: 3.4.2
I have a custom field that should appear only when Resolution is FIXED.
If I edit a bug in any "open" status, and change the status to RESOLVED, the resolution field appears while FIXED is the first value, so it's selected. This does not make my custom field be displayed on the page as expected.
If I change Resolution to any other value and then back to FIXED, my custom field is displayed.
Steps to Reproduce:
1.Define a custom field, set 'Field only appears when'=Resolution, 'is set to'=FIXED
2. Open existing bug in any open status (NEW/ASSIGNED/REOPENED)
3. Change status to RESOLVED
resolution field appears, FIXED is selected (the first value), but you custom field does not appear
Your custom field should appear in this case, the same like on change of the resolution field to FIXED
I can reproduce the problem. Probably should JS trigger this event.
OK, I couldn't understand why a custom field was not displayed despite the bug was marked as FIXED till I remembered this bug.
If I finish this before the sec release, then it can be a blocker, otherwise it will have to wait for 3.4.6.
there are a bunch of fields that don't use the custom field template so I can check this out. Did we test this across the board with all the built in fields?
*** This bug has been marked as a duplicate of bug 538211 ***
Okay, so it turns out that the bug that I duped this to was specifically a problem in enter_bug, so it couldn't possibly be related to this bug. Reopening.
Created attachment 425722 [details] [diff] [review]
Okay, this fixes it. We fire onchange when we display or hide the resolution field, now, and when we hide it, we set it to an empty value so that the onchange works properly.
Comment on attachment 425722 [details] [diff] [review]
OK, this fixes the problem for me. r=LpSolit
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
Committed revision 6973.
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/
Committed revision 6967.
Committing to: bzr+ssh://firstname.lastname@example.org/bugzilla/3.4/
Committed revision 6722.
*** Bug 575501 has been marked as a duplicate of this bug. ***