From ee28e0f7efc98e6a52da48cad70d8c549ad807e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Wed, 27 Oct 2021 09:37:39 +0800 Subject: [PATCH] * Add bind product action. --- module/project/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/project/model.php b/module/project/model.php index 24dcbda385..8900dc5bab 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -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');