From 98bf133f47a7849b28a4621751fb50b9b0fea4e5 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Thu, 27 Oct 2022 10:13:21 +0800 Subject: [PATCH] * Resolve feedback #981. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index a3718dee88..45b6e3d872 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2441,7 +2441,7 @@ class storyModel extends model /* If no executions, in plan, stage is planned. No plan, wait. */ if(!$executions) { - $this->dao->update(TABLE_STORY)->set('stage')->eq('wait')->where('id')->eq($storyID)->andWhere('plan')->eq('')->exec(); + $this->dao->update(TABLE_STORY)->set('stage')->eq('wait')->where('id')->eq($storyID)->andWhere('plan', true)->eq('')->orWhere('plan')->eq(0)->markRight(1)->exec(); foreach($stages as $branch => $stage) {