From dca623d4294606221d28d651af334ff7759d5285 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 24 Aug 2022 17:40:34 +0800 Subject: [PATCH] * Fix bug#26780. --- module/story/model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index af047c8b79..dda6cac00c 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -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';