* fix a bug when module root is 0.
This commit is contained in:
@@ -171,7 +171,7 @@ class tree extends control
|
||||
die(js::reload('parent'));
|
||||
}
|
||||
$module = $this->tree->getById($moduleID);
|
||||
if($module->owner == null)
|
||||
if($module->owner == null and $module->root != 0)
|
||||
{
|
||||
$module->owner = $this->loadModel('product')->getById($module->root)->QD;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user