diff --git a/module/testcase/control.php b/module/testcase/control.php index 1d756a85a9..74bff877f3 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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'); + } } diff --git a/module/testcase/model.php b/module/testcase/model.php index 9fbf37c07b..6da824b03d 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -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'; diff --git a/www/theme/default/images/main/new_theme.png b/www/theme/default/images/main/new_theme.png index 078cbc7f46..45fef96472 100644 Binary files a/www/theme/default/images/main/new_theme.png and b/www/theme/default/images/main/new_theme.png differ