]> 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 49b902e62b00e6358550df57fd0efbb8ca0b98fc..416abc150104741bff85625bb03353ab0930a3dd 100644 (file)
@@ -75,7 +75,7 @@ is true, the above options must be present, and their values are used.
 use warnings;
 use strict;
 use vars qw($VERSION $DEBUG %EXPORT_TAGS @EXPORT_OK @EXPORT);
-use base qw(Exporter);
+use Exporter qw(import);
 
 BEGIN{
      $VERSION = 1.00;
@@ -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) {