* Fix bug #18060.
This commit is contained in:
@@ -643,6 +643,21 @@ class testcaseModel extends model
|
||||
return $this->appendData($cases);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cases by product id.
|
||||
*
|
||||
* @param int $productID
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getByProduct($productID)
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_CASE)
|
||||
->where('deleted')->eq(0)
|
||||
->andWhere('product')->eq($productID)
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get cases of a story.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user