This commit is contained in:
zhouxin
2022-03-15 02:14:16 +00:00
parent 5b77f0f0d0
commit 2c347bccb8
+6 -1
View File
@@ -1277,7 +1277,6 @@ class storyModel extends model
*/
public function review($storyID)
{
if($this->post->result == false) return print(js::alert($this->lang->story->mustChooseResult));
if($this->post->result == 'revert' and $this->post->preVersion == false) return print(js::alert($this->lang->story->mustChoosePreVersion));
if(strpos($this->config->story->review->requiredFields, 'comment') !== false and !$this->post->comment)
@@ -1286,6 +1285,12 @@ class storyModel extends model
return false;
}
if($this->post->result == false)
{
dao::$errors[] = $this->lang->story->mustChooseResult;
return false;
}
$oldStory = $this->dao->findById($storyID)->from(TABLE_STORY)->fetch();
$now = helper::now();
$date = helper::today();