]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 175838 Reopening a bug does not clear resolution, nor does selecting 'clear resol...
authorbugreport%peshkin.net <>
Thu, 31 Oct 2002 10:44:05 +0000 (10:44 +0000)
committerbugreport%peshkin.net <>
Thu, 31 Oct 2002 10:44:05 +0000 (10:44 +0000)
patch by jeff.hedlund@matrixsi.com
2xr=gerv

process_bug.cgi

index 47f038e5246ec8604bae6d9995eef27848294f3a..bf0edc09c2ba132edc61dfe510852e1309c078b0 100755 (executable)
@@ -519,7 +519,8 @@ sub DoConfirm {
 
 sub ChangeStatus {
     my ($str) = (@_);
-    if ($str ne $::FORM{'dontchange'}) {
+    if (!$::FORM{'dontchange'} ||
+       ($str ne $::FORM{'dontchange'})) {
         DoComma();
         if ($::FORM{knob} eq 'reopen') {
             # When reopening, we need to check whether the bug was ever
@@ -571,7 +572,8 @@ sub ChangeStatus {
 
 sub ChangeResolution {
     my ($str) = (@_);
-    if ($str ne $::FORM{'dontchange'}) {
+    if (!$::FORM{'dontchange'} ||
+       ($str ne $::FORM{'dontchange'})) {
         DoComma();
         $::query .= "resolution = " . SqlQuote($str);
     }