diff --git a/module/tree/control.php b/module/tree/control.php index c706520565..c2fd89762a 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -239,6 +239,8 @@ class tree extends control $datasource = $this->loadModel('workflowdatasource', 'flow')->getByID($datasourceID); if($datasource) { + $this->app->rawModule = 'workflowdatasource'; + $title = $datasource->name; $position[] = $datasource->name; @@ -250,18 +252,24 @@ class tree extends control } } } - else + else if(strpos($viewType, '_') !== false) { - $manageChild = 'manage' . ucfirst($viewType) . 'Child'; + $params = explode('_', $viewType); + if(count($params) == 2) + { + $this->app->rawModule = $params[0]; - $title = $this->lang->tree->common; - $position[] = $this->lang->tree->common; + $manageChild = 'manage' . ucfirst($viewType) . 'Child'; - $this->lang->tree->$manageChild = $title; + $title = $this->lang->tree->common; + $position[] = $this->lang->tree->common; - $root = new stdclass(); - $root->name = $title; - $this->view->root = $root; + $this->lang->tree->$manageChild = $title; + + $root = new stdclass(); + $root->name = $title; + $this->view->root = $root; + } } $parentModules = $this->tree->getParents($currentModuleID);