* fix bug #2007.
This commit is contained in:
@@ -248,6 +248,8 @@ class treeModel extends model
|
||||
{
|
||||
$parentModules = explode(',', trim($module->path, ','));
|
||||
if($type == 'product' and isset($noProductModules[$parentModules[0]])) continue;
|
||||
/* Fix bug #2007. */
|
||||
if($type == 'product' and $module->type == 'task' and !isset($modules[$parentModules[0]])) continue;
|
||||
$rootName = ($productNum > 1 and $type == 'product') ? "/$rootModule/" : '/';
|
||||
if($type == 'product' and $module->branch and isset($branchGroups[$id][$module->branch])) $rootName .= $branchGroups[$id][$module->branch] . '/';
|
||||
$this->buildTreeArray($treeMenu, $modules, $module, $rootName);
|
||||
|
||||
Reference in New Issue
Block a user