Merge branch 'fixbug_liumengyi' into 'master'

* Fix bug 32578, and fix bug of set path.

See merge request easycorp/zentaopms!7118
This commit is contained in:
孙广明
2023-03-02 00:48:31 +00:00
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1046,7 +1046,7 @@ class programplanModel extends model
$this->dao->update(TABLE_PROJECT)->set('path')->eq($path['path'])->set('grade')->eq($path['grade'])->where('id')->eq($stage->id)->exec();
if(count($children) > 0)
if(!empty($children))
{
foreach($children as $id => $child) $this->setTreePath($id);
}
+8
View File
@@ -26,6 +26,13 @@
</div>
<div class="cell show" id="queryBox" data-module='testsuite'></div>
<div id='mainContent'>
<?php if(empty($cases)):?>
<div class="table-empty-tip">
<p>
<span class="text-muted"><?php echo $lang->testcase->noCase;?></span>
</p>
</div>
<?php else:?>
<form class='main-table table-testcase' data-ride='table' method='post'>
<div class="table-header">
<i class="icon-unlink"></i> &nbsp;<strong><?php echo $lang->testsuite->unlinkedCases;?></strong> (<?php echo $pager->recTotal;?>)
@@ -87,5 +94,6 @@
</div>
<?php endif;?>
</form>
<?php endif;?>
</div>
<?php include '../../common/view/footer.html.php';?>