Fix bug #20749.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user