Merge branch 'ent-8926-13158-Falla-nuevamente-plantilla-de-componentes-con-macro-en-politica' into 'develop'

fixed creation of policy modules based on local components with macros

See merge request artica/pandorafms!4866
This commit is contained in:
Daniel Rodriguez 2022-05-17 11:07:56 +00:00
commit a42328ff29
1 changed files with 4 additions and 0 deletions

View File

@ -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");