From f361a9772115402539b2a0c0292fae3c31cc7bbf Mon Sep 17 00:00:00 2001 From: liyuchun Date: Thu, 28 Oct 2021 08:35:21 +0800 Subject: [PATCH] * Fix error of kanban. --- module/execution/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 6ad56fd685..f67a3d3376 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1855,8 +1855,8 @@ class execution extends control /* Get execution's product. */ $productID = 0; - $productPairs = $this->loadModel('product')->getProductPairsByProject($executionID); - if($productPairs) $productID = key($productPairs); + $products = $this->execution->getProducts($executionID); + if($products) $productID = key($products); $plans = $this->execution->getPlans($products); $allPlans = array('' => '');