Merge branch 'ent-7022-open-error-en-la-ruta-de-netscan-custom' into 'develop'

Fixed task edit url when nof fully defined (custom-script)

See merge request 
This commit is contained in:
Daniel Rodriguez 2021-04-06 17:00:49 +00:00
commit c192a1681b
2 changed files with 4 additions and 1 deletions
pandora_console

View File

@ -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';

View File

@ -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.