* [bug#67333] Fix the bug of link product in project.

This commit is contained in:
xieqiyu
2025-12-02 16:44:26 +08:00
committed by sunhao
parent a282f3f0f4
commit db6cda7d89
+1 -1
View File
@@ -1989,7 +1989,7 @@ class projectModel extends model
if(!empty($_POST['otherProducts'])) return $this->linkOtherProducts($projectID, $members);
/* Link products of current program of the project. */
$products = isset($_POST['products']) ? toIntArray($_POST['products']) : $products;
$products = isset($_POST['products']) ? (array)$_POST['products'] : $products;
$oldProjectProducts = $this->dao->select('*')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchGroup('product', 'branch');
$this->linkProducts($projectID, $products, $oldProjectProducts, $members);