From 4c988a24136143a6836744af58970a5d8d5d1dc9 Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Thu, 5 May 2022 13:59:35 +0200 Subject: [PATCH] fixed creation of policy modules based on local components with macros --- pandora_console/include/javascript/pandora_modules.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/javascript/pandora_modules.js b/pandora_console/include/javascript/pandora_modules.js index 545ef9f481..3a536a461f 100644 --- a/pandora_console/include/javascript/pandora_modules.js +++ b/pandora_console/include/javascript/pandora_modules.js @@ -846,6 +846,10 @@ function add_macro_field(macro, row_model_id, type_copy, k) { // Change attributes to be unique and with identificable class $macro_field.attr("id", row_id); + $macro_field + .find("input") + .first() + .attr("name", macro_macro); $macro_field.attr("class", "macro_field");