diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-09 21:14:26 -0800 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-09 21:14:26 -0800 |
commit | c6c99bcc594d33553921ca111f05f374330d5d4d (patch) | |
tree | 5093d087d74e220b22e182b0f8a6d45fe7f94261 /js | |
parent | Bug 537846 - "Disable the "Reset" checkbox for the maintainer parameter" [r=m... (diff) | |
download | bugzilla-c6c99bcc594d33553921ca111f05f374330d5d4d.tar.gz bugzilla-c6c99bcc594d33553921ca111f05f374330d5d4d.tar.bz2 bugzilla-c6c99bcc594d33553921ca111f05f374330d5d4d.zip |
Bug 545277: Closed bugs were always marked as FIXED in the resolution
<select> when show_bug.cgi was loaded
r=LpSolit, a=mkanat
Diffstat (limited to 'js')
-rw-r--r-- | js/field.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js index 1300e1c53..011d4da52 100644 --- a/js/field.js +++ b/js/field.js @@ -272,6 +272,7 @@ function showHideStatusItems(e, dupArrayInfo) { // by "resolution" behave properly when resolution is hidden. var resolution = document.getElementById('resolution'); if (resolution && resolution.options[0].value != '') { + resolution.bz_lastSelected = resolution.selectedIndex; var emptyOption = new Option('', ''); resolution.insertBefore(emptyOption, resolution.options[0]); emptyOption.selected = true; @@ -295,7 +296,7 @@ function showHideStatusItems(e, dupArrayInfo) { // Remove the blank option we inserted. if (resolution && resolution.options[0].value == '') { resolution.removeChild(resolution.options[0]); - resolution.options[0].selected = true; + resolution.selectedIndex = resolution.bz_lastSelected; } } |