From e045ce8322648f3e050d06d6cc3ec1d8783b52a9 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Mon, 14 Nov 2022 11:24:50 +0800 Subject: [PATCH] * finish task #75896 --- module/execution/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 3c2ff6c461..7835578a65 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -2473,7 +2473,7 @@ class executionModel extends model /* Link stories. */ $executionStories = $this->loadModel('story')->getExecutionStoryPairs($executionID); $lastOrder = (int)$this->dao->select('*')->from(TABLE_PROJECTSTORY)->where('project')->eq($executionID)->orderBy('order_desc')->limit(1)->fetch('order'); - $stories = $this->dao->findById($storyID)->fields("id as story, product, version")->from(TABLE_STORY)->where('id')->in(array_keys($executionStories))->fetchAll('story'); + $stories = $this->dao->select("id as story, product, version")->from(TABLE_STORY)->where('id')->in(array_keys($executionStories))->fetchAll('story'); foreach($stories as $storyID) { if(!isset($executionStories[$storyID]))