From e874b8d4f06ea22eafcb11e833c3dc5b5cf5ea44 Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Mon, 20 Nov 2023 14:27:19 +0800 Subject: [PATCH] * Fixed the warn when story has stages. --- module/story/ui/edit.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/ui/edit.html.php b/module/story/ui/edit.html.php index 4b8c4dfc53..3cbeb955ac 100644 --- a/module/story/ui/edit.html.php +++ b/module/story/ui/edit.html.php @@ -21,12 +21,12 @@ $multiplePlan = ($product->type != 'normal' && empty($story->branch) && $planCou $minStage = $story->stage; $stageList = implode(',', array_keys($this->lang->story->stageList)); $minStagePos = strpos($stageList, $minStage); -if(!empty($story->stages) and $branchTagOption) +if(!empty($story->stages) && isset($fields['stage']['options'])) { foreach($story->stages as $branch => $stage) { $position = strpos(",{$stageList},", ",{$stage},"); - if($position !== false and $position > $minStagePos) + if($position !== false && $position > $minStagePos) { $minStage = $stage; $minStagePos = $position;