Fixed task edit url when nof fully defined (custom-script)
This commit is contained in:
parent
971f86601a
commit
c20c206a5f
|
@ -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';
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue