]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 818890: Bugzilla doesn't obey the "Comment required on status transition" for...
authorAlexander Tereschenko <aleksandr.v.tereschenko@linux.intel.com>
Mon, 17 Dec 2012 22:41:09 +0000 (23:41 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 17 Dec 2012 22:41:09 +0000 (23:41 +0100)
r/a=LpSolit

Bugzilla/Bug.pm

index 6a21b4e892523a50353d17e6a705569ef93fb833..e47b05779c5cb8d5db43c65d8ff2fe3f72f5a523 100644 (file)
@@ -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 });