* finish task #2335.

This commit is contained in:
wangyidong
2015-11-02 15:30:43 +08:00
parent 1807788f9d
commit 5d7126f5ca
14 changed files with 58 additions and 15 deletions
+3 -2
View File
@@ -43,7 +43,7 @@ class actionModel extends model
$action->actor = $actor;
$action->action = $actionType;
$action->date = helper::now();
$action->comment = trim(strip_tags($comment, $this->config->allowedTags));
$action->comment = $this->loadModel('file')->pasteImage(trim(strip_tags($comment, $this->config->allowedTags)));
$action->extra = $extra;
/* Get product and project for this object. */
@@ -810,9 +810,10 @@ class actionModel extends model
*/
public function updateComment($actionID)
{
$comment = $this->loadModel('file')->pasteImage(trim(strip_tags($this->post->lastComment, $this->config->allowedTags)));
$this->dao->update(TABLE_ACTION)
->set('date')->eq(helper::now())
->set('comment')->eq(trim(strip_tags($this->post->lastComment, $this->config->allowedTags)))
->set('comment')->eq($comment)
->where('id')->eq($actionID)
->exec();
}