diff --git a/module/my/control.php b/module/my/control.php index a88b54769a..cc7e21db48 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -223,7 +223,7 @@ class my extends control * @access public * @return void */ - public function testtask($orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function testtask($type = 'wait', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Load pager. */ $this->app->loadClass('pager', $static = true); @@ -236,12 +236,13 @@ class my extends control $this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->testTask; $this->view->position[] = $this->lang->my->testTask; - $this->view->tasks = $this->loadModel('testtask')->getByUser($this->app->user->account, $pager, $orderBy); + $this->view->tasks = $this->loadModel('testtask')->getByUser($this->app->user->account, $pager, $orderBy, $type); $this->view->recTotal = $recTotal; $this->view->recPerPage = $recPerPage; $this->view->pageID = $pageID; $this->view->orderBy = $orderBy; + $this->view->type = $type; $this->view->pager = $pager; $this->display(); @@ -263,6 +264,7 @@ class my extends control /* Save session, load lang. */ $this->session->set('caseList', $this->app->getURI(true)); $this->app->loadLang('testcase'); + $this->app->loadLang('testtask'); /* Load pager. */ $this->app->loadClass('pager', $static = true); diff --git a/module/my/view/testcase.html.php b/module/my/view/testcase.html.php index 7abcb814ed..7873fa56f4 100644 --- a/module/my/view/testcase.html.php +++ b/module/my/view/testcase.html.php @@ -16,7 +16,8 @@