fixed metaconsole tree view
This commit is contained in:
parent
2829ddd8dd
commit
51f71d1a07
|
@ -44,6 +44,7 @@ if (is_ajax ()) {
|
|||
require_once($config['homedir'] . "/include/class/TreeTag.class.php");
|
||||
require_once($config['homedir'] . "/include/class/TreeGroup.class.php");
|
||||
enterprise_include_once("include/class/TreePolicies.class.php");
|
||||
enterprise_include_once("include/class/TreeGroupMeta.class.php");
|
||||
require_once($config['homedir'] . "/include/functions_reporting.php");
|
||||
require_once($config['homedir'] . "/include/functions_os.php");
|
||||
|
||||
|
@ -91,7 +92,13 @@ if (is_ajax ()) {
|
|||
$tree = new TreeTag($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access);
|
||||
break;
|
||||
case 'group':
|
||||
$tree = new TreeGroup($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access);
|
||||
if(is_metaconsole()){
|
||||
if (!class_exists('TreeGroupMeta')) break;
|
||||
$tree = new TreeGroupMeta($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access);
|
||||
}
|
||||
else{
|
||||
$tree = new TreeGroup($type, $rootType, $id, $rootID, $serverID, $childrenMethod, $access);
|
||||
}
|
||||
break;
|
||||
case 'policies':
|
||||
if (!class_exists('TreePolicies')) break;
|
||||
|
|
|
@ -70,6 +70,11 @@ class Tree {
|
|||
}
|
||||
|
||||
public function setFilter($filter) {
|
||||
// There is not module filter in metaconsole.
|
||||
if (is_metaconsole()) {
|
||||
$filter['searchModule'] = "";
|
||||
$filter['statusModule'] = self::TV_DEFAULT_AGENT_STATUS;
|
||||
}
|
||||
$this->filter = $filter;
|
||||
}
|
||||
|
||||
|
@ -952,7 +957,6 @@ class Tree {
|
|||
|
||||
$inner_or_left = $this->getInnerOrLeftJoin();
|
||||
$group_inner = $this->getGroupSearchInner();
|
||||
$id_os = $this->rootID;
|
||||
$group_acl = $this->getGroupAclCondition();
|
||||
$group_search_filter = $this->getGroupSearchFilter();
|
||||
$agent_search_filter = $this->getAgentSearchFilter();
|
||||
|
|
Loading…
Reference in New Issue