Merge branch 'sprint/168_sgm_43396' into 'sprint/168'
* Add bind product action. See merge request easycorp/zentaopms!166
This commit is contained in:
@@ -868,6 +868,7 @@ class projectModel extends model
|
||||
|
||||
$this->dao->insert(TABLE_PRODUCT)->data($product)->exec();
|
||||
$productID = $this->dao->lastInsertId();
|
||||
$this->loadModel('action')->create('product', $productID, 'opened');
|
||||
$this->dao->update(TABLE_PRODUCT)->set('`order`')->eq($productID * 5)->where('id')->eq($productID)->exec();
|
||||
if($product->acl != 'open') $this->loadModel('user')->updateUserView($productID, 'product');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user