From: Alexander Tereschenko Date: Mon, 17 Dec 2012 22:41:09 +0000 (+0100) Subject: Bug 818890: Bugzilla doesn't obey the "Comment required on status transition" for... X-Git-Tag: bugzilla-4.2.5~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e0d6380ebe8dd26eca2c1bc57011459b30e8776;p=thirdparty%2Fbugzilla.git Bug 818890: Bugzilla doesn't obey the "Comment required on status transition" for {Start}-> transition (for new bugs) r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 6a21b4e892..e47b05779c 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1368,7 +1368,7 @@ 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, new => $new_status });