+fix the bug#152

This commit is contained in:
chencongzhi520@gmail.com
2010-11-22 05:18:54 +00:00
parent ef4d678886
commit 0ea4e52173
+6 -1
View File
@@ -118,7 +118,12 @@ class tree extends control
echo js::alert($this->lang->tree->successSave);
die(js::reload('parent'));
}
$this->view->module = $this->tree->getById($moduleID);
$module = $this->tree->getById($moduleID);
if($module->owner == null)
{
$module->owner = $this->loadModel('product')->getById($module->root)->bugOwner;
}
$this->view->module = $module;
$this->view->optionMenu = $this->tree->getOptionMenu($this->view->module->root, $this->view->module->type);
$this->view->users = $this->loadModel('user')->getPairs('noclosed');