This commit is contained in:
sunguangming
2024-01-30 14:10:23 +08:00
parent 081b4b6b4f
commit ca9d78d06d
+3
View File
@@ -56,6 +56,7 @@ class story extends control
$copyStoryID = $storyID;
list($productID, $objectID) = $this->storyZen->setMenuForCreate($productID, $objectID);
if($productID == 0 && $objectID == 0) return $this->locate($this->createLink('product', 'create'));
if($productID == 0 && $objectID != 0) return $this->sendError($this->lang->execution->errorNoLinkedProducts, $this->createLink('execution', 'manageproducts', "executionID=$objectID"));
if(!empty($_POST))
{
@@ -167,6 +168,8 @@ class story extends control
$this->storyZen->setMenuForBatchCreate($productID, $branch, $executionID, $extra);
if($productID == 0 && $executionID != 0) return $this->sendError($this->lang->execution->errorNoLinkedProducts, $this->createLink('execution', 'manageproducts', "executionID=$executionID"));
/* Check can subdivide or not. */
$product = $this->product->getByID($productID);
if($product) $this->lang->product->branch = sprintf($this->lang->product->branch, $this->lang->product->branchName[$product->type]);