* adjust for block and activaate
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user