* Fix bug for create story.
This commit is contained in:
@@ -52,7 +52,7 @@ if($config->systemMode != 'ALM') unset($config->product->form->batchEdit['progra
|
||||
|
||||
$config->product->form->close = array();
|
||||
$config->product->form->close['status'] = array('type' => 'string', 'control' => 'hidden', 'required' => false, 'default' => 'close');
|
||||
$config->product->form->close['closedDate'] = array('type' => 'string', 'control' => '', 'required' => false, 'default' => helper::now());
|
||||
$config->product->form->close['closedDate'] = array('type' => 'string', 'control' => 'hidden', 'required' => false, 'default' => date('Y-m-d'));
|
||||
|
||||
$config->product->form->manageLine = array();
|
||||
$config->product->form->manageLine['products'] = array('type' => 'array', 'control' => 'text', 'required' => false, 'default' => '');
|
||||
|
||||
@@ -1098,7 +1098,8 @@ class storyZen extends story
|
||||
return false;
|
||||
}
|
||||
|
||||
if($storyData->status != 'draft' and $this->story->checkForceReview()) $storyData->status = 'reviewing';
|
||||
/* Need and force review, then set status to reviewing. */
|
||||
if($storyData->status != 'draft' and $this->story->checkForceReview() and !$this->post->needNotReview) $storyData->status = 'reviewing';
|
||||
return $this->loadModel('file')->processImgURL($storyData, $editorFields, $this->post->uid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user