From c790b48fd716cb6580b086fc4135a3914d2f71e1 Mon Sep 17 00:00:00 2001 From: Calvo Date: Tue, 10 Oct 2023 10:40:37 +0200 Subject: [PATCH] Fix discovery list network column for disco ext --- pandora_console/godmode/wizards/DiscoveryTaskList.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 796f3a56d9..d0bbcb7cb5 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -761,7 +761,7 @@ class DiscoveryTaskList extends HTML $data[3] = __('Manual'); } - if ($task['id_recon_script'] == 0 || $ipam === true && $task['type'] !== '15') { + if (($task['id_recon_script'] == 0 || $ipam === true) && (int) $task['type'] !== DISCOVERY_EXTENSION) { $data[4] = ui_print_truncate_text($subnet, 50, true, true, true, '[…]'); } else { $data[4] = '-'; @@ -998,7 +998,7 @@ class DiscoveryTaskList extends HTML && $task['type'] != DISCOVERY_CLOUD_AWS_RDS && $task['type'] != DISCOVERY_CLOUD_AWS_S3 ) { - if (check_acl($config['id_user'], 0, 'MR') && (int) $task['type'] !== 15) { + if (check_acl($config['id_user'], 0, 'MR') && (int) $task['type'] !== DISCOVERY_EXTENSION) { $data[9] .= ''; $data[9] .= html_print_image( 'images/web@groups.svg',