From 840226f0b88c788deeed52c99f705e9f5c54767a Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Fri, 26 Jul 2024 16:40:38 +0200 Subject: [PATCH] aa --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index a05a4add..24c82185 100644 --- a/routes/web.php +++ b/routes/web.php @@ -2326,7 +2326,7 @@ Route::post('/updatecreate', function (Request $request) { } // Se il Cliente era nuovo, allora estrai l'ID del Cliente appena salvato e passalo all'Ordine - if ($CodClienteInternet <= 0) { + if ($CodClienteInternet <= 0 || $CodClienteInternet === null) { if ($cliente->CodClienteInternet) { $CodClienteInternet = $cliente->CodClienteInternet; $order->CodClienteInternet = $CodClienteInternet;