From 58a4ebb665a628fb8a7b8d466061776aef2c0da8 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 4 Jan 2022 09:00:21 +0800 Subject: [PATCH] * Modify the code format of productplan mode file. --- module/productplan/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/productplan/model.php b/module/productplan/model.php index 216efe500c..c026bddd46 100644 --- a/module/productplan/model.php +++ b/module/productplan/model.php @@ -649,7 +649,7 @@ class productplanModel extends model */ public function batchUpdate($productID) { - $data = fixer::input('post')->skipSpecial('desc')->get(); + $data = fixer::input('post')->get(); $oldPlans = $this->getByIDList($data->id); $this->app->loadClass('purifier', true); @@ -704,8 +704,8 @@ class productplanModel extends model /*Determine whether the begin and end dates of the parent plan and the child plan are correct. */ if($oldPlans[$planID]->parent > 0) { - $parentID = $oldPlans[$planID]->parent; - $parent = isset($plans[$parentID]) ? $plans[$parentID] : $this->getByID($parentID); + $parentID = $oldPlans[$planID]->parent; + $parent = isset($plans[$parentID]) ? $plans[$parentID] : $this->getByID($parentID); if($parent->begin != '2030-01-01' and $plan->begin < $parent->begin) { die(js::alert(sprintf($this->lang->productplan->beginLetterParentTip, $planID, $plan->begin, $parent->begin)));