* Fixed the warn when story has stages.

This commit is contained in:
wangxuepeng
2023-11-20 14:27:22 +08:00
parent a3d2868736
commit e874b8d4f0
+2 -2
View File
@@ -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;