Merge branch 'ent-10154-no-funciona-la-vista-de-mapa-de-red-preliminar-desde-tarea-discovery' into 'develop'

Ent 10154 no funciona la vista de mapa de red preliminar desde tarea discovery

See merge request artica/pandorafms!5415
This commit is contained in:
Daniel Rodriguez 2023-01-16 14:05:43 +00:00
commit 24f219e2ce
2 changed files with 2 additions and 2 deletions

View File

@ -776,7 +776,7 @@ class NetworkMap
// Search.
if ($this->idTask) {
// Network map, based on discovery task.
return get_discovery_agents($this->idTask);
enterprise_hook('get_discovery_agents', [$this->idTask]);
}
if ($this->network) {

View File

@ -4161,7 +4161,7 @@ function networkmap_get_new_nodes_and_links($networkmap, $x, $y)
}
if ((int) $networkmap['source'] === SOURCE_TASK) {
$agents = get_discovery_agents($id_recon, true);
$agents = enterprise_hook('get_discovery_agents', [$id_recon, true]);
} else if ((int) $networkmap['source'] === SOURCE_NETWORK) {
// Network map, based on direct network.
$agents = networkmap_get_nodes_from_ip_mask(