* Fix bug for create story.

This commit is contained in:
wangyidong
2023-10-13 17:31:38 +08:00
parent dd7c8d0249
commit 1d75b53770
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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' => '');
+2 -1
View File
@@ -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);
}