diff --git a/module/testtask/ui/browse.html.php b/module/testtask/ui/browse.html.php index 74421b84e9..9eae915c13 100644 --- a/module/testtask/ui/browse.html.php +++ b/module/testtask/ui/browse.html.php @@ -15,15 +15,25 @@ $status = !empty($scopeAndStatus[1]) ? $scopeAndStatus[1] : ''; $viewName = $scope == 'local'? \zget($products, $product->id) : $lang->testtask->all; jsVar('condition', "productID=$product->id&branch=$branch&type=$type&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}&pageID=1"); +$testMenuLink = createLink( + $this->app->rawModule, + $this->app->rawMethod, + array( + 'productID' => $product->id, + 'branch' => '{branch}', + 'type' => '{type}', + ) +); + $productDropdown = productMenu ( set::title($viewName), set::items(array ( - array('text' => $lang->testtask->all, 'url' => helper::createLink('testtask', 'browse', "productID=$product->id&branch=0&type=all,$status")), - array('text' => \zget($products, $product->id), 'url' => helper::createLink('testtask', 'browse', "productID=$product->id&branch=$branch&type=local,$status")) + array('text' => $lang->testtask->all, 'branch' => 0, 'type' => "all,$status"), + array('text' => \zget($products, $product->id), 'branch' => $branch, 'type' => "local,$status") )), - set::link(createLink('qa', 'index')), + set::link($testMenuLink), ); featureBar (