* Finish task #7578.

This commit is contained in:
holan20180123
2020-07-29 15:44:43 +08:00
parent 98d4541f1b
commit 1ce528b3f9
+1 -1
View File
@@ -57,7 +57,7 @@ class actionModel extends model
/* Get product and project for this object. */
$productAndProject = $this->getProductAndProject($action->objectType, $objectID);
$action->product = $productAndProject['product'];
$action->project = (int) $productAndProject['project'];
$action->project = $actionType == 'unlinkedfromproject' ? (int)$extra : (int)$productAndProject['project'];
$this->dao->insert(TABLE_ACTION)->data($action)->autoCheck()->exec();
$actionID = $this->dbh->lastInsertID();