* Fix return error.
This commit is contained in:
@@ -45,7 +45,7 @@ class main extends wg
|
||||
protected function buildMenu(): wg
|
||||
{
|
||||
$menuBlocks = $this->block('menu');
|
||||
if(empty($menuBlocks)) return null;
|
||||
if(empty($menuBlocks)) return div();
|
||||
|
||||
list($featureBarList, $navList, $toolbarList, $restList) = groupWgInList($menuBlocks, array('featureBar', 'nav', 'toolbar'));
|
||||
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'module=doc');?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'dashboard=doc');?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
<p><span class="text-muted"><?php echo $lang->execution->noProject;?></span> <?php common::printLink('execution', 'create', '', "<i class='icon icon-plus'></i> " . $lang->execution->create, '', "class='btn btn-info'");?></p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'module=execution');?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'dashboard=execution');?>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -33,7 +33,7 @@ class my extends control
|
||||
public function index()
|
||||
{
|
||||
$this->view->title = $this->lang->my->common;
|
||||
echo $this->fetch('block', 'dashboard', 'module=my');
|
||||
echo $this->fetch('block', 'dashboard', 'dashboard=my');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
<p><span class="text-muted"><?php echo $lang->product->noProduct;?></span> <?php common::printLink('product', 'create', '', "<i class='icon icon-plus'></i> " . $lang->product->create, '', "class='btn btn-info'");?></p>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'module=product');?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'dashboard=product');?>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'module=qa');?>
|
||||
<?php echo $this->fetch('block', 'dashboard', 'dashboard=qa');?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -38,7 +38,7 @@ $config->testtask->actionList['linkCase']['url'] = helper::createLink('testtask
|
||||
$config->testtask->actionList['report']['icon'] = 'summary';
|
||||
$config->testtask->actionList['report']['text'] = $lang->testtask->testreport;
|
||||
$config->testtask->actionList['report']['hint'] = $lang->testtask->testreport;
|
||||
$config->testtask->actionList['report']['url'] = helper::createLink('testreport', 'browse', 'objectID={product}&objectType=product&extra={id}');
|
||||
$config->testtask->actionList['report']['url'] = array('module' => 'testreport', 'method' => 'browse', 'params' => 'objectID={product}&objectType=product&extra={id}');
|
||||
|
||||
$config->testtask->actionList['view']['icon'] = 'list-alt';
|
||||
$config->testtask->actionList['view']['text'] = $lang->testtask->view;
|
||||
|
||||
Reference in New Issue
Block a user