#12298 clear hidden fields

This commit is contained in:
Jorge Rincon 2023-10-24 09:57:25 +02:00
parent 9a74b74b98
commit 1838126354

View File

@ -707,7 +707,7 @@ $(document).ready (function () {
name: "id_action", name: "id_action",
value: "<?php echo (int) $id; ?>" value: "<?php echo (int) $id; ?>"
}); });
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>, jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
values, values,
function (data, status) { function (data, status) {
@ -739,6 +739,9 @@ $(document).ready (function () {
// If the row is empty, hide it // If the row is empty, hide it
if (field_row == '') { if (field_row == '') {
// Clear hidden fields.
$("[name=field" + i + "_value]").val('');
$("[name=field" + i + "_recovery_value]").val('')
$table_macros_field.hide(); $table_macros_field.hide();
continue; continue;
} }