summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-10 06:14:26 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-10 06:14:26 +0100
commitc6c99bcc594d33553921ca111f05f374330d5d4d (patch)
tree5093d087d74e220b22e182b0f8a6d45fe7f94261 /js
parent75c45bfe94e44c4bbe77bd11ccfc13b7da57c1bb (diff)
downloadbugzilla-c6c99bcc594d33553921ca111f05f374330d5d4d.tar.gz
bugzilla-c6c99bcc594d33553921ca111f05f374330d5d4d.tar.xz
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.js3
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;
}
}