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('' => '');