Merge branch 'ent-8388-bug-en-eventos-generados-a-partir-alerta' into 'develop'

fixed bugged selectors in action editor

See merge request artica/pandorafms!4618
This commit is contained in:
Daniel Rodriguez 2022-01-11 10:10:59 +00:00
commit 4899d68ec2
1 changed files with 11 additions and 2 deletions

View File

@ -694,12 +694,21 @@ $(document).ready (function () {
}
}
else {
var is_element_select = $("[name=field" + i + "_value]").is("select");
$("[name=field" + i + "_value]").val(old_value);
if (is_element_select === true) {
$("[name=field" + i + "_value]").trigger('change');
}
$("[name=field" + i + "_recovery_value]").val(old_recovery_value);
if (is_element_select === true) {
$("[name=field" + i + "_recovery_value]").trigger('change');
}
}
}
else {
if ($("[name=field" + i + "_value]").val() != 'text/plain') {
$("[name=field" + i + "_value]")