From bb7cabe9625694abda3bb6037433852220ba57cd Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 18 Jul 2024 15:05:52 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 4 ++-- routes/web.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 40ead42f..f1546ec6 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -526,7 +526,7 @@ function showOrdini() function setOrdine($idinternet, $mode) { try { - $str = ""; + $str = "setOrdine"; $ordine = Orderdetail::where('IdInternet', $idinternet)->get(); if ($ordine) @@ -540,7 +540,7 @@ function setOrdine($idinternet, $mode) if ($mode === 'AAAdel' && $ordine) { // delete record $ordine $deletedCount = Orderdetail::where('IdInternet', $idinternet)->delete(); - $str = "
Numero di record eliminati: " . $deletedCount . ""; + $str .= "
Numero di record eliminati: " . $deletedCount . ""; } } catch (\Exception $e) { $str .= "Errore: " . $e->getMessage(); diff --git a/routes/web.php b/routes/web.php index acce1584..1a54e2b8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6106,7 +6106,8 @@ Route::get('/aggiornapreorder/{idarticolo}/{aggiornapreordine}', function ($idar }); Route::get('/setordine/{idinternet}/{mode}', function ($idinternet, $mode) { - setOrdine($idinternet, $mode); + $str = setOrdine($idinternet, $mode); + echo $str; }); Route::get('/aggiornadatapubblicazione/{idarticolo}', function ($idarticolo) {