* Fix bug #14697.
This commit is contained in:
@@ -1963,4 +1963,15 @@ class testcase extends control
|
||||
if($methodName == 'update') $status = zget($status, 1, '');
|
||||
die($status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajax: Get count of need review casese.
|
||||
*
|
||||
* @access public
|
||||
* @return int
|
||||
*/
|
||||
public function ajaxGetReviewCount()
|
||||
{
|
||||
echo $this->dao->select('count(id) as count')->from(TABLE_CASE)->where('status')->eq('wait')->fetch('count');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ class testcaseModel extends model
|
||||
}
|
||||
|
||||
/**
|
||||
* Get by suite.
|
||||
* Get cases by suite.
|
||||
*
|
||||
* @param int $productID
|
||||
* @param int $branch
|
||||
@@ -329,7 +329,7 @@ class testcaseModel extends model
|
||||
* @param object $pager
|
||||
* @param string $auto no|unit
|
||||
* @access public
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function getBySuite($productID, $branch = 0, $suiteID, $moduleIdList = 0, $orderBy = 'id_desc', $pager = null, $auto = 'no')
|
||||
{
|
||||
@@ -586,7 +586,7 @@ class testcaseModel extends model
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getByStatus($productID = 0, $branch, $type = 'all', $status = 'all', $moduleID, $orderBy = 'id_desc', $pager, $auto = 'no')
|
||||
public function getByStatus($productID = 0, $branch, $type = 'all', $status = 'all', $moduleID = 0, $orderBy = 'id_desc', $pager = null, $auto = 'no')
|
||||
{
|
||||
$modules = $moduleID ? $this->loadModel('tree')->getAllChildId($moduleID) : '0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user