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, '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') { if ($this->actionType === 'wmi') {
@ -5696,10 +5682,9 @@ class AgentWizard extends HTML
.removeClass("alpha50"); .removeClass("alpha50");
if (selectedBlock.prop("checked")) { if (selectedBlock.prop("checked")) {
// Set to active the values of fields. // Set to active the values of fields.
$("[id*=hidden-module-active-"+blockNumber+"]") for (i = 0; i<=15; i++) {
.each(function(){ document.getElementById("hidden-module-active-" + switchName[2] + "_"+i+"-"+i).value = 1;
$(this).val('1'); }
});
// Set checked. // Set checked.
$("[id*=checkbox-sel_module_" + blockNumber + "]") $("[id*=checkbox-sel_module_" + blockNumber + "]")
.each(function() { .each(function() {
@ -5708,10 +5693,9 @@ class AgentWizard extends HTML
imageInfoModules.removeClass('hidden'); imageInfoModules.removeClass('hidden');
} else { } else {
// Set to inactive the values of fields. // Set to inactive the values of fields.
$("[id*=hidden-module-active-"+blockNumber+"]") for (i = 0; i<=15; i++) {
.each(function(){ document.getElementById("hidden-module-active-" + switchName[2] + "_"+i+"-"+i).value = 0;
$(this).val('0'); }
});
// Set unchecked. // Set unchecked.
$("[id*=checkbox-sel_module_" + blockNumber + "]") $("[id*=checkbox-sel_module_" + blockNumber + "]")
.each(function() { .each(function() {