* Fix bug #32578, and fix bug of set path.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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> <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';?>
|
||||
|
||||
Reference in New Issue
Block a user