From f5564ebc9a748e6c7a83c41deb31c3dee862537d Mon Sep 17 00:00:00 2001 From: chaideqing Date: Wed, 17 May 2023 11:17:04 +0800 Subject: [PATCH] * Fix bug#35287, when batch closing stories, there is no canceled option after draft story. --- module/story/view/batchclose.html.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/story/view/batchclose.html.php b/module/story/view/batchclose.html.php index 170f5d47e9..27d360827f 100755 --- a/module/story/view/batchclose.html.php +++ b/module/story/view/batchclose.html.php @@ -42,11 +42,13 @@ processStatus('story', $story);?> - status == 'draft') unset($reasonList['cancel']);?>
- + status == 'draft' ? $closedReasonList = array_diff_key($reasonList, array('cancel' => '')) : $reasonList; + echo html::select("closedReasons[$storyID]", $closedReasonList, 'done', "class=form-control onchange=setDuplicateAndChild(this.value,$storyID) style='min-width: 80px'"); + ?> ' closedReason != 'duplicate') echo "style='display:none'";?>> searchAB}'");?>