From 7fb8685e042d62f581faae9613cc1ecfe684c64a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 11 Nov 2021 16:01:51 +0800 Subject: [PATCH] * Fix the problem of reporting errors in batch editing stories. --- module/story/view/batchedit.html.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 31042e7182..b789d3567e 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -101,16 +101,19 @@ foreach(explode(',', $showFields) as $field) '> ''); - if($story->branch != BRANCH_MAIN) - { - if(isset($plans[$story->branch])) $productPlans += $plans[$story->branch]; - if(isset($plans[0])) $productPlans += $plans[0]; - } - else - { - foreach($plans as $branchPlan) $productPlans += $branchPlan; - } + if($productID) + { + $productPlans = array('' => ''); + if($story->branch != BRANCH_MAIN) + { + if(isset($plans[$story->branch])) $productPlans += $plans[$story->branch]; + if(isset($plans[0])) $productPlans += $plans[0]; + } + else + { + foreach($plans as $branchPlan) $productPlans += $branchPlan; + } + } ?> session->currentProductType == 'normal') $productPlans = array('' => '', 'ditto' => $this->lang->story->ditto) + $productPlans;?> plan, "class='form-control chosen'");?>