From b28777ecfdeff8dacf519bd4fb7c789a3109b78a Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 6 Jan 2022 14:04:18 +0800 Subject: [PATCH 1/2] * Fix bug for batch edit. --- module/productplan/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/productplan/control.php b/module/productplan/control.php index e2169be671..1f2f3833e1 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -164,7 +164,7 @@ class productplan extends control return print(js::locate($this->session->productPlanList, 'parent')); } - $planIDList = $this->post->planIDList ? $this->post->planIDList : return print(js::locate($this->session->productPlanList, 'parent')); + $planIDList = $this->post->planIDList ? $this->post->planIDList : print(js::locate($this->session->productPlanList, 'parent')); $this->commonAction($productID, $branch); From 038b8b01c2425922268e9baea896522c70236512 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 6 Jan 2022 14:19:08 +0800 Subject: [PATCH 2/2] * Fix bug for batch edit. --- module/productplan/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/productplan/control.php b/module/productplan/control.php index 1f2f3833e1..53153f0751 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -164,11 +164,11 @@ class productplan extends control return print(js::locate($this->session->productPlanList, 'parent')); } - $planIDList = $this->post->planIDList ? $this->post->planIDList : print(js::locate($this->session->productPlanList, 'parent')); + if(!$this->post->planIDList) return print(js::locate($this->session->productPlanList, 'parent')); $this->commonAction($productID, $branch); - $plans = $this->productplan->getByIDList($planIDList); + $plans = $this->productplan->getByIDList($this->post->planIDList); $oldBranch = array(); foreach($plans as $plan) $oldBranch[$plan->id] = $plan->branch;