Merge branch 'ent-7119-11478-Ticket-GUARDIA-SNMPBrowser-falla-a-la-hora-de-visualizar-datos' into 'develop'

Ent 7119 11478 ticket guardia snmp browser falla a la hora de visualizar datos

See merge request artica/pandorafms!3890
This commit is contained in:
Daniel Rodriguez 2021-03-11 11:18:13 +00:00
commit 8f5f9b09da
2 changed files with 2 additions and 1 deletions

View File

@ -346,8 +346,8 @@ class AgentWizard extends HTML
// Capture the parameters. // Capture the parameters.
$this->protocol = get_parameter('protocol'); $this->protocol = get_parameter('protocol');
$this->targetPort = get_parameter('targetPort', '161');
if ($this->protocol === 'snmp') { if ($this->protocol === 'snmp') {
$this->targetPort = get_parameter('targetPort', '161');
$this->community = get_parameter('community', 'public'); $this->community = get_parameter('community', 'public');
$this->version = get_parameter('version', '1'); $this->version = get_parameter('version', '1');

View File

@ -4869,6 +4869,7 @@ function ui_print_agent_autocomplete_input($parameters)
$get_only_string_modules = true; $get_only_string_modules = true;
} }
$no_disabled_modules = true;
if (isset($parameters['no_disabled_modules'])) { if (isset($parameters['no_disabled_modules'])) {
$no_disabled_modules = $parameters['no_disabled_modules']; $no_disabled_modules = $parameters['no_disabled_modules'];
} }