Optimize the code.

This commit is contained in:
孙华伟
2022-04-02 01:32:33 +00:00
parent a58fc45e20
commit c6327139bc
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -543,6 +543,8 @@ class bug extends control
$builds = $this->loadModel('build')->getBuildPairs($productID, $branch, 'noempty,noterminate,nodone,withbranch');
$stories = $this->story->getProductStoryPairs($productID, $branch);
}
/* Remove parent stories. */
foreach($stories as $key => $value)
{
$story = $this->story->getByID($value);