diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index a62507b7b7..95562ad0e5 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -1060,7 +1060,9 @@ class DiscoveryTaskList extends HTML */ public function getTargetWiz($task, $script=false) { - if ($script !== false) { + if ($script !== false + || (int) $task['type'] === DISCOVERY_HOSTDEVICES_CUSTOM + ) { switch ($script['type']) { case DISCOVERY_SCRIPT_APP_VMWARE: return 'wiz=app&mode=vmware&page=0'; diff --git a/pandora_console/include/class/CustomNetScan.class.php b/pandora_console/include/class/CustomNetScan.class.php index 2d22d1b7fc..90a07cc781 100644 --- a/pandora_console/include/class/CustomNetScan.class.php +++ b/pandora_console/include/class/CustomNetScan.class.php @@ -185,6 +185,7 @@ class CustomNetScan extends Wizard $this->task['id_recon_server'] = $server_id; $this->task['id_group'] = $id_group; $this->task['interval_sweep'] = $interval; + $this->task['type'] = DISCOVERY_HOSTDEVICES_CUSTOM; if (isset($this->task['id_rt']) === false) { // Create.