Bug 416481: No bugmail is sent if no comment is added on bug creation - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
git-svn-id: svn://10.0.0.236/trunk@245518 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
3651ed8bd4
commit
17a3854995
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -605,7 +605,7 @@ sub sendMail {
|
||||
}
|
||||
}
|
||||
|
||||
if ($difftext eq "" && $newcomments eq "") {
|
||||
if ($difftext eq "" && $newcomments eq "" && !$isnew) {
|
||||
# Whoops, no differences!
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user