* Fix bug #12784, bug #12783.

This commit is contained in:
hufangzhou
2021-05-24 13:06:44 +08:00
parent 16ffbd5b44
commit d2688a7eab
+2 -1
View File
@@ -1213,7 +1213,7 @@ class storyModel extends model
}
}
$this->dao->update(TABLE_STORY)->data($story)
$this->dao->update(TABLE_STORY)->data($story, 'closedReason')
->autoCheck()
->batchCheck($this->config->story->review->requiredFields, 'notempty')
->checkIF($this->post->result == 'reject', 'closedReason', 'notempty')
@@ -1233,6 +1233,7 @@ class storyModel extends model
}
if($this->post->result != 'reject') $this->setStage($storyID);
if(isset($story->closedReason)) unset($story->closedReason);
return common::createChanges($oldStory, $story);
}