Optimize the code.

This commit is contained in:
孙华伟
2022-04-02 08:47:38 +08:00
parent 41d22a7f4b
commit a58fc45e20
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -896,7 +896,7 @@ class testcase extends control
$stories = $this->story->getProductStoryPairs($productID, $case->branch);
foreach($stories as $key => $value)
{
$story = $this->story->getByID($stories[$key]);
$story = $this->story->getByID($value);
if(!empty($story->childStories)) unset($stories[$key]);
}
$this->view->productID = $productID;