* Fix notice bug.

This commit is contained in:
sunguangming
2024-03-04 11:48:42 +08:00
parent 65f4f81efd
commit c3d8ef7a4b
+7
View File
@@ -173,6 +173,13 @@ class story extends control
$product = $this->product->getByID($productID);
if($product) $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$product->type]);
if($storyID)
{
$story = $this->story->getByID($storyID);
$this->view->storyTitle = isset($story->title) ? $story->title : '';
if(!$this->story->checkCanSubdivide($story, !empty($product->shadow))) return $this->send(array('result' => 'fail', 'load' => array('alert' => $this->lang->story->errorNotSubdivide)));
}
/* The 'batchCreateFields' of global variable $config will be changed and used by the following business logic. */
$customFields = $this->storyZen->getCustomFields($this->config, $storyType, $this->view->hiddenPlan, $product);
$showFields = $this->storyZen->getShowFields($this->config->story->custom->batchCreateFields, $storyType, $product);