* Fix bug#26780.

This commit is contained in:
xieqiyu
2022-08-24 17:40:34 +08:00
parent 5ab68b8aa2
commit dca623d429
+2 -1
View File
@@ -5562,7 +5562,8 @@ class storyModel extends model
if($reviewRule == 'halfpass')
{
if($rejectCount == floor(count($revireList) / 2)) return 'closed';
/* When the number of reviewers is even, half of them reject to close. */
if(count($reviewerList) > 1 and count($reviewerList) % 2 == 0 and $rejectCount == floor(count($reviewerList) / 2)) return 'closed';
if($passCount >= floor(count($reviewerList) / 2) + 1) $status = 'active';
if($rejectCount >= floor(count($reviewerList) / 2) + 1) $status = 'closed';