diff --git a/gestion/appinfo/routes.php b/gestion/appinfo/routes.php index 2ccbfeb..477acb5 100644 --- a/gestion/appinfo/routes.php +++ b/gestion/appinfo/routes.php @@ -209,6 +209,6 @@ return [ ['name' => 'provider#sendEmailAttachment', 'url' => '/test-send-mail-attach', 'verb' => 'GET'], - ['name' => 'page#updateDevisLigneTrajet', 'url' => '/updateDevisLigneTrajet', 'verb' => 'GET'], + ['name' => 'page#updateDevisLigneTrajet', 'url' => '/updateDevisLigneTrajet', 'verb' => 'POST'], ] ]; \ No newline at end of file diff --git a/gestion/lib/Controller/PageController.php b/gestion/lib/Controller/PageController.php index 5c41a9a..ff68591 100644 --- a/gestion/lib/Controller/PageController.php +++ b/gestion/lib/Controller/PageController.php @@ -2929,7 +2929,7 @@ class PageController extends Controller { public function updateDevisLigneTrajet($idNextcloud ,$mois , $annee){ //get all devis id from month avril if(!$idNextcloud || !$mois || !$mois){ - return; + return null; }