From 9019fbbc0489f427c7cbc64c6a50148434bcb075 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Mon, 18 Jan 2021 10:01:08 +0800 Subject: [PATCH] * Fix a bug. --- module/product/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index dcaa3fedc0..a35b629d36 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -190,9 +190,9 @@ class product extends control $projectPlanList = $this->dao->select('product,plan')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($this->session->PRJ)->fetchPairs('product', 'plan'); $notLinkPlans = array(); - foreach($projectPlanList as $productID => $planID) + foreach($projectPlanList as $product => $planID) { - if(isset($productPlans[$productID][$planID])) unset($productPlans[$productID][$planID]); + if(isset($productPlans[$product][$planID])) unset($productPlans[$product][$planID]); } foreach($productPlans as $productPlans)