]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 416481: No bugmail is sent if no comment is added on bug creation - Patch by...
authorlpsolit%gmail.com <>
Wed, 13 Feb 2008 03:13:07 +0000 (03:13 +0000)
committerlpsolit%gmail.com <>
Wed, 13 Feb 2008 03:13:07 +0000 (03:13 +0000)
Bugzilla/Bug.pm
Bugzilla/BugMail.pm

index 9be3830cfa4e94c659cebf76ab607e5a87011c83..5cbe8a6198d0ab299934462373df43ba5a4618d9 100755 (executable)
@@ -1005,14 +1005,6 @@ sub _check_comment {
     $comment =~ s/\r\n?/\n/g; # Get rid of \r.
 
     ThrowUserError('comment_too_long') if length($comment) > MAX_COMMENT_LENGTH;
-
-    # Creation-only checks
-    if (!ref $invocant) {
-        # On creation only, there must be a single-space comment, or
-        # email will be supressed.
-        $comment = ' ' if $comment eq '';
-    }
-
     return $comment;
 }
 
index 13f25b5b43c12451c3250724656015ad8a1d0216..2f132e2deae89e585515b3b697e805dd8dc3b103 100644 (file)
@@ -605,7 +605,7 @@ sub sendMail {
         }
     }
  
-    if ($difftext eq "" && $newcomments eq "") {
+    if ($difftext eq "" && $newcomments eq "" && !$isnew) {
       # Whoops, no differences!
       return 0;
     }