Commit 64e21e0b authored by Alexander Tereschenko's avatar Alexander Tereschenko Committed by Frédéric Buclin

Bug 818890: Bugzilla doesn't obey the "Comment required on status transition"…

Bug 818890: Bugzilla doesn't obey the "Comment required on status transition" for {Start}-> transition (for new bugs) r/a=LpSolit
parent db3413be
......@@ -1323,11 +1323,12 @@ sub _check_bug_status {
}
# Check if a comment is required for this change.
if ($new_status->comment_required_on_change_from($old_status) && !$comment)
if ($new_status->comment_required_on_change_from($old_status)
&& !$comment->{'thetext'})
{
ThrowUserError('comment_required',
{ old => $old_status->name, new => $new_status->name,
field => 'bug_status' });
{ old => $old_status ? $old_status->name : undef,
new => $new_status->name, field => 'bug_status' });
}
if (ref $invocant
......
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