]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/Control.pm
Fix (and test) setting summary/outlook in Control: messages (Closes: #836613).
[debbugs.git] / Debbugs / Control.pm
index 226cd1f8c57f2b8ebfeaf5a0a0f918da35f99ae5..416abc150104741bff85625bb03353ab0930a3dd 100644 (file)
@@ -2748,7 +2748,7 @@ sub _summary {
         print {$debug} "Removing $cmd fields\n";
         $action = "Removed $cmd";
     }
-    elsif ($param{$cmd} =~ /^\d+$/) {
+    elsif ($param{$cmd} =~ /^-?\d+$/) {
         my $log = [];
         my @records = Debbugs::Log::read_log_records(bug_num => $param{bug});
         if ($param{$cmd} == 0 or $param{$cmd} == -1) {