Fixed error in tree view (meta and strict user with tags). Ticket3437
This commit is contained in:
parent
d0aaaff782
commit
437d7b539f
|
@ -2092,19 +2092,20 @@ class Tree {
|
||||||
$rootIDs = $this->rootID;
|
$rootIDs = $this->rootID;
|
||||||
|
|
||||||
$items = array();
|
$items = array();
|
||||||
|
$j = 1;
|
||||||
|
$server = metaconsole_get_servers();
|
||||||
foreach ($rootIDs as $serverID => $rootID) {
|
foreach ($rootIDs as $serverID => $rootID) {
|
||||||
$server = metaconsole_get_servers($serverID);
|
if (metaconsole_connect($server[$j]) != NOERR)
|
||||||
if (metaconsole_connect($server) != NOERR)
|
|
||||||
continue;
|
continue;
|
||||||
db_clean_cache();
|
db_clean_cache();
|
||||||
|
|
||||||
$this->rootID = $rootID;
|
$this->rootID = $rootID;
|
||||||
$newItems = $this->getItems();
|
$newItems = $this->getItems();
|
||||||
$this->processAgents($newItems, $server);
|
$this->processAgents($newItems, $server[$j]);
|
||||||
$newItems = array_filter($newItems);
|
$newItems = array_filter($newItems);
|
||||||
$items = array_merge($items, $newItems);
|
$items = array_merge($items, $newItems);
|
||||||
|
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
|
$j++;
|
||||||
}
|
}
|
||||||
$this->rootID = $rootIDs;
|
$this->rootID = $rootIDs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue