*Finish task#7379.

This commit is contained in:
leiyong
2020-07-20 00:03:23 -07:00
parent a454abf6da
commit a509bcdab0
2 changed files with 3 additions and 1 deletions

View File

@@ -1 +1,3 @@
ALTER TABLE `zt_doccontent` CHANGE `content` `content` longtext NOT NULL AFTER `digest`;
update zt_story set stage = 'closed' where status = 'closed';

View File

@@ -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();