Merge branch 'fixbug_sunjun_21618' into 'master'

Fixbug sunjun 21618

See merge request easycorp/zentaopms!2859
This commit is contained in:
孙广明
2022-04-12 01:40:59 +00:00
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -1094,6 +1094,7 @@ class testcase extends control
$this->view->cases = $cases;
$this->view->forceNotReview = $this->testcase->forceNotReview();
$this->view->modulePairs = $modulePairs;
$this->view->isLibCase = $type == 'lib' ? true : false;
$this->display();
}
+10
View File
@@ -40,6 +40,16 @@ function loadBranches(product, branch, caseID)
loadStories(product, 0, caseID);
}
$(document).ready(function()
{
/* Set secondary menu highlighting. */
if(isLibCase)
{
$('#navbar li[data-id=caselib]').addClass('active');
$('#navbar li[data-id=testcase]').removeClass('active');
}
})
$(function()
{
removeDitto(); //Remove 'ditto' in first row.
+1
View File
@@ -13,6 +13,7 @@
<?php include '../../common/view/header.html.php';?>
<?php js::set('dittoNotice', $this->lang->testcase->dittoNotice);?>
<?php js::set('productID', $productID);?>
<?php js::set('isLibCase', $isLibCase);?>
<div id="mainContent" class="main-content">
<div class="main-header">
<h2><?php echo $lang->testcase->common . $lang->colon . $lang->testcase->batchEdit;?></h2>