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)
|
public function getTargetWiz($task, $script=false)
|
||||||
{
|
{
|
||||||
if ($script !== false) {
|
if ($script !== false
|
||||||
|
|| (int) $task['type'] === DISCOVERY_HOSTDEVICES_CUSTOM
|
||||||
|
) {
|
||||||
switch ($script['type']) {
|
switch ($script['type']) {
|
||||||
case DISCOVERY_SCRIPT_APP_VMWARE:
|
case DISCOVERY_SCRIPT_APP_VMWARE:
|
||||||
return 'wiz=app&mode=vmware&page=0';
|
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_recon_server'] = $server_id;
|
||||||
$this->task['id_group'] = $id_group;
|
$this->task['id_group'] = $id_group;
|
||||||
$this->task['interval_sweep'] = $interval;
|
$this->task['interval_sweep'] = $interval;
|
||||||
|
$this->task['type'] = DISCOVERY_HOSTDEVICES_CUSTOM;
|
||||||
|
|
||||||
if (isset($this->task['id_rt']) === false) {
|
if (isset($this->task['id_rt']) === false) {
|
||||||
// Create.
|
// Create.
|
||||||
|
|
Loading…
Reference in New Issue