* adjust for block and activaate

This commit is contained in:
pengjiangxiu
2017-03-16 09:55:11 +08:00
parent 9b3bf11a21
commit c0240bb96b
6 changed files with 15 additions and 13 deletions
+4 -4
View File
@@ -523,19 +523,19 @@ class testtask extends control
}
/**
* Close testtask.
* block testtask.
*
* @param int $taskID
* @access public
* @return void
*/
public function blocked($taskID)
public function block($taskID)
{
$actions = $this->loadModel('action')->getList('testtask', $taskID);
if(!empty($_POST))
{
$changes = $this->testtask->blocked($taskID);
$changes = $this->testtask->block($taskID);
if(dao::isError()) die(js::error(dao::getError()));
if($this->post->comment != '' or !empty($changes))
@@ -558,7 +558,7 @@ class testtask extends control
$this->view->testtask = $testtask;
$this->view->title = $testtask->name . $this->lang->colon . $this->lang->testtask->start;
$this->view->position[] = $this->lang->testtask->common;
$this->view->position[] = $this->lang->testtask->blocked;
$this->view->position[] = $this->lang->testtask->block;
$this->view->actions = $actions;
$this->display();
}