* Optimize code.

This commit is contained in:
liumengyi
2023-11-13 10:57:59 +08:00
parent b74785b486
commit 9d1010764d
+2 -2
View File
@@ -1278,8 +1278,8 @@ class testcaseZen extends testcase
/* 设置需求键对。 */
/* Set story pairs. */
$story = $storyID ? $this->loadModel('story')->getByID($storyID) : '';
$storyPairs = $this->story->getProductStoryPairs($productID, $branch === 'all' ? 0 : $branch);
$storyPairs = $this->loadModel('story')->getProductStoryPairs($productID, $branch === 'all' ? 0 : $branch);
$story = $storyID ? $this->story->getByID($storyID) : '';
$storyPairs += $storyID ? array($storyID => $story->id . ':' . $story->title) : array();
if($storyID && empty($moduleID)) $moduleID = $story->module;