diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 1f3e442a15..0e258464fd 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -1024,7 +1024,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 ed0fa21b64..1eab6f6634 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.