From f5bc1f99a2d655d3cc08c6153d96c14887f36bdc Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 24 Mar 2022 16:53:54 +0800 Subject: [PATCH] * Modify the code. --- module/story/model.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index b56c3cd22d..ccda5eefb0 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -933,13 +933,11 @@ class storyModel extends model ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') ->where('t1.story')->eq($storyID) ->andWhere('t2.deleted')->eq(0) + ->andWhere('t2.type')->in('sprint,stage,kanban') ->fetchPairs(); $this->loadModel('kanban'); - foreach($executionIdList as $executionID) - { - $this->kanban->updateLane($executionID, 'story', $storyID); - } + foreach($executionIdList as $executionID) $this->kanban->updateLane($executionID, 'story', $storyID); } unset($oldStory->parent);