mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added tag/group filter support to the metaconsole
This commit is contained in:
parent
79b77a6ecf
commit
d0dff23658
@ -1463,8 +1463,16 @@ class Tree {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Item found
|
// Item found
|
||||||
if ($item["id"] == $item_id)
|
if (! defined("METACONSOLE")) {
|
||||||
return $item;
|
if ($item["id"] == $item_id)
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
foreach ($item["id"] as $server_id => $id) {
|
||||||
|
if ($id == $item_id)
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($item["type"] == "group" && !empty($item["children"])) {
|
if ($item["type"] == "group" && !empty($item["children"])) {
|
||||||
$result = self::extractItemWithID($item["children"], $item_id, $item_type);
|
$result = self::extractItemWithID($item["children"], $item_id, $item_type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user