From a509bcdab008dec2310c2e6d4289df2ca57d05e4 Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Mon, 20 Jul 2020 00:03:23 -0700 Subject: [PATCH] *Finish task#7379. --- db/update12.3.3.sql | 2 ++ module/story/model.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/update12.3.3.sql b/db/update12.3.3.sql index 3a21df8a26..5978ebe38a 100644 --- a/db/update12.3.3.sql +++ b/db/update12.3.3.sql @@ -1 +1,3 @@ ALTER TABLE `zt_doccontent` CHANGE `content` `content` longtext NOT NULL AFTER `digest`; + +update zt_story set stage = 'closed' where status = 'closed'; diff --git a/module/story/model.php b/module/story/model.php index 51f704693b..54e8bc5baa 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1430,7 +1430,7 @@ class storyModel extends model $story = $this->dao->findById($storyID)->from(TABLE_STORY)->fetch(); - if($story->status == 'closed') return $this->dao->update(TABLE_STORY)->set('stage')->eq('closed')->set('stagedBy')->eq($account)->where('id')->eq($storyID)->exec(); + if($story->status == 'closed') return $this->dao->update(TABLE_STORY)->set('stage')->eq('closed')->where('id')->eq($storyID)->exec(); if(!empty($story->stagedBy)) return false; $product = $this->dao->findById($story->product)->from(TABLE_PRODUCT)->fetch();