From 9c840db309855a9c911b780cf35203c6614b538d Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Wed, 1 Mar 2023 06:16:25 +0000 Subject: [PATCH] * Fix bug #85658. --- module/execution/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {