* Fix issue for zanode.
This commit is contained in:
@@ -99,7 +99,7 @@ $lang->testcase->suite = '套件';
|
||||
$lang->testcase->executionStatus = '执行状态';
|
||||
$lang->testcase->caseType = '用例类型';
|
||||
$lang->testcase->allType = '所有类型';
|
||||
$lang->testcase->showAutoCase = '显示自动化用例';
|
||||
$lang->testcase->showAutoCase = '显示自动化';
|
||||
$lang->testcase->automation = '自动化测试';
|
||||
|
||||
$lang->case = $lang->testcase; // 用于DAO检查时使用。因为case是系统关键字,所以无法定义该模块为case,只能使用testcase,但表还是使用的case。
|
||||
|
||||
@@ -71,10 +71,11 @@
|
||||
|
||||
echo "<div id='byTypeTab' class='btn-group'>";
|
||||
echo html::a('javascript:;', "<span class='text'>{$currentLable}</span>" . " <span class='caret'></span>", '', "class='btn btn-link' data-toggle='dropdown'");
|
||||
echo "<ul class='dropdown-menu' style='max-height:240px; overflow-y:auto'>";
|
||||
echo "<ul class='dropdown-menu' style='max-height:240px; overflow-y:auto; width:120px;'>";
|
||||
|
||||
foreach($lang->testcase->typeList as $type => $typeName)
|
||||
{
|
||||
if($type == 'unit') continue;
|
||||
echo '<li' . ($type == $caseType ? " class='active'" : '') . '>';
|
||||
if(isset($groupBy))
|
||||
{
|
||||
@@ -88,15 +89,8 @@
|
||||
echo "</li>";
|
||||
}
|
||||
|
||||
echo '</ul></div>';
|
||||
}
|
||||
elseif($hasBrowsePriv and $menuType == 'autocase')
|
||||
{
|
||||
if($this->moduleName == 'testtask' and $this->methodName == 'browseunits') continue;
|
||||
if($this->moduleName == 'story' and $this->methodName == 'zerocase') continue;
|
||||
if($browseType == 'bysuite' or $browseType == 'bysearch') continue;
|
||||
|
||||
echo html::checkbox('showAutoCase', array('1' => $lang->testcase->showAutoCase), '', $this->cookie->showAutoCase ? 'checked=checked' : '');
|
||||
echo '</ul></div>';
|
||||
}
|
||||
elseif($hasBrowsePriv and ($menuType == 'all' or $menuType == 'needconfirm' or $menuType == 'wait'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user