From a9075f0068c69c8602c423f669a529692aee4efd Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Tue, 27 Oct 2020 07:49:33 +0100 Subject: [PATCH] Fix --- pandora_console/include/class/AgentWizard.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php index 96a41b4039..8ab0022846 100644 --- a/pandora_console/include/class/AgentWizard.class.php +++ b/pandora_console/include/class/AgentWizard.class.php @@ -5034,15 +5034,13 @@ class AgentWizard extends HTML var imageInfoModules = $("#image-info-modules-" + blockNumber); var totalCount = 0; var markedCount = 0; - var hidden_input = document.getElementById("hidden-module-active-"+switchName[2]+"_0-0"); - var id_input = hidden_input.id.split("_"); if (type == 'block') { selectedBlock .parent() .removeClass("alpha50"); if (selectedBlock.prop("checked")) { // Set to active the values of fields. - $("[id*='"+id_input[0]+"']") + $("[id*=hidden-module-active-"+blockNumber+"]") .each(function(){ $(this).val('1'); }); @@ -5054,7 +5052,7 @@ class AgentWizard extends HTML imageInfoModules.removeClass('hidden'); } else { // Set to inactive the values of fields. - $("[id*='"+id_input[0]+"']") + $("[id*=hidden-module-active-"+blockNumber+"]") .each(function(){ $(this).val('0'); });