* [bug#57893,done,0.3h] set active.

This commit is contained in:
liumengyi
2024-12-10 16:27:57 +08:00
committed by 田淑杰
parent 158498027e
commit 06cc10fcda
+1 -1
View File
@@ -23,7 +23,7 @@ if($app->rawModule == 'programplan')
{
$viewName = $productID != 0 ? zget($productList, $productID) : $lang->product->allProduct;
$items = array(array('text' => $lang->product->allProduct, 'url' => $this->createLink('programplan', 'browse', "projectID=$projectID&productID=0&type=gantt")));
foreach($productList as $key => $productName) $items[] = array('text' => $productName, 'url' => $this->createLink('programplan', 'browse', "projectID=$projectID&productID=$key&type=gantt"));
foreach($productList as $key => $productName) $items[] = array('text' => $productName, 'url' => $this->createLink('programplan', 'browse', "projectID=$projectID&productID=$key&type=gantt"), 'active' => $productID == $key);
$productDropdown = dropdown
(
btn(set::type('link'), setClass('no-underline'), $viewName),