Merge branch 'sprint/zdoo18_wangyuting' into 'sprint/zdoo18'
* Add processing of datasource viewType. See merge request easycorp/zentaopms!3790
This commit is contained in:
@@ -229,6 +229,27 @@ class tree extends control
|
||||
$title = $this->lang->tree->manageTrainpost;
|
||||
$position[] = $this->lang->tree->manageTrainpost;
|
||||
}
|
||||
elseif(strpos($viewType, 'datasource') !== false)
|
||||
{
|
||||
$params = explode('_', $viewType);
|
||||
if(count($params) == 2)
|
||||
{
|
||||
$datasourceID = $params[1];
|
||||
$manageChild = 'manage' . ucfirst($viewType) . 'Child';
|
||||
$datasource = $this->loadModel('workflowdatasource', 'flow')->getByID($datasourceID);
|
||||
if($datasource)
|
||||
{
|
||||
$title = $datasource->name;
|
||||
$position[] = $datasource->name;
|
||||
|
||||
$this->lang->tree->$manageChild = $title;
|
||||
|
||||
$root = new stdclass();
|
||||
$root->name = $title;
|
||||
$this->view->root = $root;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$parentModules = $this->tree->getParents($currentModuleID);
|
||||
$this->view->title = $title;
|
||||
|
||||
Reference in New Issue
Block a user