* Fix bug #35136, search linked story is empty in testsuit.

This commit is contained in:
chaideqing
2023-05-16 14:32:40 +08:00
parent 7466c2dbd7
commit fb95bfef17
2 changed files with 19 additions and 1 deletions
+17
View File
@@ -816,6 +816,23 @@ class testcaseModel extends model
return $caseCounts;
}
/**
* Get case stories by productID.
*
* @param int $productID
* @access public
* @return array
*/
public function getStoriesByProduct($productID)
{
return $this->dao->select('t1.story, t2.title')->from(TABLE_CASE)->alias('t1')
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.story = t2.id')
->where('t1.product')->eq($productID)
->andWhere('t1.deleted')->eq('0')
->andWhere('t1.story')->ne(0)
->fetchPairs();
}
/**
* Update a case.
*