* only set image size when view a testtask.

This commit is contained in:
wangchunsheng
2012-04-30 06:37:33 +00:00
parent 78307b8395
commit 49b321cb6f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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);