Fix validation per variabile id_record

This commit is contained in:
MatteoPistorello 2022-09-02 11:02:04 +02:00
parent ab94b61fe1
commit d8177bda1c
1 changed files with 6 additions and 1 deletions

View File

@ -129,6 +129,11 @@ class HTMLWrapper implements WrapperInterface
var message = container.find("span");
var icon = container.find("i");
var id_record = "'.$id_record.'";
if ($(".modal-content").is(":visible")) {
var id_record = "";
}
icon.attr("class", "fa fa-spinner fa-spin");
$.ajax({
@ -136,7 +141,7 @@ class HTMLWrapper implements WrapperInterface
type: "post",
data: {
id_module: "'.$id_module.'",
id_record: "'.$id_record.'",
id_record: id_record,
name: "'.$name.'",
value: value,
op: "validate",