* [highgo] Cast type in project module.

This commit is contained in:
朱金勇
2025-12-02 16:27:37 +08:00
committed by sunhao
parent 7c5808779e
commit 8b58c368f8
+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']) ? (array)$_POST['products'] : $products;
$products = isset($_POST['products']) ? toIntArray($_POST['products']) : $products;
$oldProjectProducts = $this->dao->select('*')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetchGroup('product', 'branch');
$this->linkProducts($projectID, $products, $oldProjectProducts, $members);