Bug 179321 - cannot clear status whiteboard entirely

r=joel x2 a=justdave
parent 81094348
...@@ -617,7 +617,8 @@ foreach my $field ("rep_platform", "priority", "bug_severity", ...@@ -617,7 +617,8 @@ foreach my $field ("rep_platform", "priority", "bug_severity",
"version", "op_sys", "version", "op_sys",
"target_milestone", "status_whiteboard") { "target_milestone", "status_whiteboard") {
if (defined $::FORM{$field}) { if (defined $::FORM{$field}) {
if ($::FORM{$field} ne $::FORM{'dontchange'}) { if (!$::FORM{'dontchange'}
|| $::FORM{$field} ne $::FORM{'dontchange'}) {
DoComma(); DoComma();
$::query .= "$field = " . SqlQuote(trim($::FORM{$field})); $::query .= "$field = " . SqlQuote(trim($::FORM{$field}));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment