From 72b0baa4cdd1d91033d2d605a093feaaa8ee1191 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 2 Mar 2023 00:29:11 +0000 Subject: [PATCH] * Fix bug #32578, and fix bug of set path. --- module/programplan/model.php | 2 +- module/testsuite/view/linkcase.html.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/module/programplan/model.php b/module/programplan/model.php index 88db39867e..ed7d761bd3 100755 --- a/module/programplan/model.php +++ b/module/programplan/model.php @@ -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); } diff --git a/module/testsuite/view/linkcase.html.php b/module/testsuite/view/linkcase.html.php index e1bf64774f..d7e6927384 100644 --- a/module/testsuite/view/linkcase.html.php +++ b/module/testsuite/view/linkcase.html.php @@ -26,6 +26,13 @@
+ +
+

+ testcase->noCase;?> +

+
+
 testsuite->unlinkedCases;?> (recTotal;?>) @@ -87,5 +94,6 @@
+