fixed alert issue
This commit is contained in:
parent
ac09d8d0eb
commit
586226ceaf
@ -73,7 +73,9 @@ try {
|
|||||||
"IdCommessa" => $commessaId,
|
"IdCommessa" => $commessaId,
|
||||||
"CodiceCommessa" => "TEST001",
|
"CodiceCommessa" => "TEST001",
|
||||||
"IdCliente" => $clienteId,
|
"IdCliente" => $clienteId,
|
||||||
"Fields" => $fieldValues
|
"IdSchema" => $schemaId,
|
||||||
|
"Fields" => $fieldValues,
|
||||||
|
"Inviato" => 1
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
// 🔹 REAL API FLOW
|
// 🔹 REAL API FLOW
|
||||||
@ -82,6 +84,7 @@ try {
|
|||||||
// 1. Create CommessaWeb
|
// 1. Create CommessaWeb
|
||||||
$commessaPayload = [
|
$commessaPayload = [
|
||||||
"IdCliente" => $clienteId,
|
"IdCliente" => $clienteId,
|
||||||
|
"IdSchema" => $schemaId,
|
||||||
"IdSchemaCustomFields" => $schemaId,
|
"IdSchemaCustomFields" => $schemaId,
|
||||||
"Inviato" => 1
|
"Inviato" => 1
|
||||||
];
|
];
|
||||||
|
|||||||
@ -724,7 +724,7 @@ foreach ($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {
|
|||||||
},
|
},
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
alert("✅ CommessaWeb created. ID: " + response.comessa);
|
alert("✅ CommessaWeb created. ID: " + response.commessa.IdCommessa);
|
||||||
} else {
|
} else {
|
||||||
alert("❌ Error: " + response.message);
|
alert("❌ Error: " + response.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user