diff options
Diffstat (limited to 'Bugzilla')
-rwxr-xr-x | Bugzilla/Bug.pm | 8 | ||||
-rw-r--r-- | Bugzilla/BugMail.pm | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 9be3830cf..5cbe8a619 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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; } diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index 13f25b5b4..2f132e2de 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -605,7 +605,7 @@ sub sendMail { } } - if ($difftext eq "" && $newcomments eq "") { + if ($difftext eq "" && $newcomments eq "" && !$isnew) { # Whoops, no differences! return 0; } |