Merge branch 'ent-7115-bugs-menores-en-wizard-snmp-ifaces' into 'develop'

fixed error  with block current value

See merge request artica/pandorafms!4231
This commit is contained in:
Daniel Rodriguez 2021-06-24 12:28:49 +00:00
commit 0362b99c86

View File

@ -644,20 +644,6 @@ class AgentWizard extends HTML
'return' => true,
],
];
if (empty($this->idPolicy) === true) {
$inputs[] = [
'label' => __('Use agent IP'),
'id' => 'txt-use-agent-ip',
'arguments' => [
'name' => 'use-agent-ip',
'input_class' => 'flex-row',
'type' => 'checkbox',
'class' => '',
'return' => true,
],
];
}
}
if ($this->actionType === 'wmi') {
@ -5696,10 +5682,9 @@ class AgentWizard extends HTML
.removeClass("alpha50");
if (selectedBlock.prop("checked")) {
// Set to active the values of fields.
$("[id*=hidden-module-active-"+blockNumber+"]")
.each(function(){
$(this).val('1');
});
for (i = 0; i<=15; i++) {
document.getElementById("hidden-module-active-" + switchName[2] + "_"+i+"-"+i).value = 1;
}
// Set checked.
$("[id*=checkbox-sel_module_" + blockNumber + "]")
.each(function() {
@ -5708,10 +5693,9 @@ class AgentWizard extends HTML
imageInfoModules.removeClass('hidden');
} else {
// Set to inactive the values of fields.
$("[id*=hidden-module-active-"+blockNumber+"]")
.each(function(){
$(this).val('0');
});
for (i = 0; i<=15; i++) {
document.getElementById("hidden-module-active-" + switchName[2] + "_"+i+"-"+i).value = 0;
}
// Set unchecked.
$("[id*=checkbox-sel_module_" + blockNumber + "]")
.each(function() {