* only set image size when view a testtask.
This commit is contained in:
@@ -169,7 +169,7 @@ class testtask extends control
|
||||
public function view($taskID)
|
||||
{
|
||||
/* Get test task, and set menu. */
|
||||
$task = $this->testtask->getById($taskID);
|
||||
$task = $this->testtask->getById($taskID, true);
|
||||
if(!$task) die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
$productID = $task->product;
|
||||
$this->testtask->setMenu($this->products, $productID);
|
||||
|
||||
Reference in New Issue
Block a user