* Fix groupcase method.

This commit is contained in:
Yagami
2018-09-11 10:20:56 +08:00
parent d01b60f37b
commit 9ef2f028c2
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ class testtask extends control
public function __construct($moduleName = '', $methodName = '')
{
parent::__construct($moduleName, $methodName);
$this->loadModel('project');
$this->loadModel('product');
$this->view->products = $this->products = $this->product->getPairs('nocode');
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testtask")));
@@ -255,7 +256,7 @@ class testtask extends control
/* Get task and product info, set menu. */
$task = $this->testtask->getById($taskID);
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
if(!$task) die(js::error($this->lang->testtask->checkLinked) . js::locate('back'));
$productID = $task->product;
$this->testtask->setMenu($this->products, $productID, $task->branch, $taskID);
setcookie('preTaskID', $taskID, $this->config->cookieLife, $this->config->webRoot);