Commit bc040aab authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 416481: No bugmail is sent if no comment is added on bug creation - Patch by…

Bug 416481: No bugmail is sent if no comment is added on bug creation - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 30c7fa92
...@@ -1005,14 +1005,6 @@ sub _check_comment { ...@@ -1005,14 +1005,6 @@ sub _check_comment {
$comment =~ s/\r\n?/\n/g; # Get rid of \r. $comment =~ s/\r\n?/\n/g; # Get rid of \r.
ThrowUserError('comment_too_long') if length($comment) > MAX_COMMENT_LENGTH; 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; return $comment;
} }
......
...@@ -605,7 +605,7 @@ sub sendMail { ...@@ -605,7 +605,7 @@ sub sendMail {
} }
} }
if ($difftext eq "" && $newcomments eq "") { if ($difftext eq "" && $newcomments eq "" && !$isnew) {
# Whoops, no differences! # Whoops, no differences!
return 0; return 0;
} }
......
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