From 4e15469935c3498e29ff4da0d7a9728b57fc4ec8 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 27 Mar 2017 15:53:07 +0800 Subject: [PATCH] * fix bug for sendmail that no action. --- module/action/model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index 991c31c393..09f5a53631 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -52,8 +52,11 @@ class actionModel extends model $action->project = $productAndProject['project']; $this->dao->insert(TABLE_ACTION)->data($action)->autoCheck()->exec(); + $actionID = $this->dbh->lastInsertID(); + $this->file->updateObjectID($this->post->uid, $objectID, $objectType); - return $this->dbh->lastInsertID(); + + return $actionID; } /**