* [bug#37528,done,0.2h] Render the third parameter of the product link.

This commit is contained in:
hufangzhou
2024-06-17 14:24:48 +08:00
committed by 王于听
parent 616b740bd2
commit 4de9bece81
+2 -2
View File
@@ -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