diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index b5c12e73799..0b33a3c197c 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -6978 \ No newline at end of file +6979 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/js/field.js b/mozilla/webtools/bugzilla/js/field.js index 1300e1c533e..011d4da52de 100644 --- a/mozilla/webtools/bugzilla/js/field.js +++ b/mozilla/webtools/bugzilla/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; } }