* Modify testtask browse.
This commit is contained in:
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user