diff --git a/module/execution/control.php b/module/execution/control.php index 649664c636..8f1b2d3db6 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1036,7 +1036,8 @@ class execution extends control $execution = $this->commonAction($executionID); $project = $this->loadModel('project')->getByID($execution->project); $executionID = $execution->id; - $products = $this->product->getProducts($execution->id); + $products = $this->product->getProducts($execution->id); + if(count($products) === 1) $productID = current($products)->id; if($execution->hasProduct) {