From 4de9bece8178efc132b08dd383d8b17510bc48b4 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Mon, 17 Jun 2024 14:20:18 +0800 Subject: [PATCH] * [bug#37528,done,0.2h] Render the third parameter of the product link. --- module/programplan/ui/create.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/programplan/ui/create.html.php b/module/programplan/ui/create.html.php index 37161f0a3c..cf0200757b 100644 --- a/module/programplan/ui/create.html.php +++ b/module/programplan/ui/create.html.php @@ -34,7 +34,7 @@ $title = $lang->programplan->create; if($planID) $title = $programPlan->name . $lang->project->stage . '(' . $programPlan->begin . $lang->project->to . $programPlan->end . ')'; /* Generate product list dropdown menu while stage by product. */ -$fnGenerateStageByProductList = function() use ($productID, $productList, $project) +$fnGenerateStageByProductList = function() use ($productID, $productList, $project, $planID) { if(empty($productList) || $project->stageBy != 'product') return null; @@ -43,7 +43,7 @@ $fnGenerateStageByProductList = function() use ($productID, $productList, $proje $items = array(); foreach($productList as $key => $product) { - $items[] = array('text' => $product, 'active' => $productID == $key, 'url' => createLink('programplan', 'create', "projectID=$project->id&productID=$key")); + $items[] = array('text' => $product, 'active' => $productID == $key, 'url' => createLink('programplan', 'create', "projectID=$project->id&productID=$key&planID=$planID")); } return dropdown