diff --git a/src/Controller/PublicController.php b/src/Controller/PublicController.php index 9778527..3de52d3 100644 --- a/src/Controller/PublicController.php +++ b/src/Controller/PublicController.php @@ -339,13 +339,6 @@ class PublicController extends AbstractController $currentObjectData = $this->motocultrice->get_osm_object_data($osm_kind, $osm_object_id); $tags_before_modif = $currentObjectData['tags_converted'] ?? []; $tags_after_modif = $tags; -// var_dump('POST brut', $_POST); -// var_dump('request->request->all()', $request->request->all()); -// var_dump('tags extraits', $tags); - var_dump('tags_before_modif', $tags_before_modif); - var_dump('tags after modif', $tags_after_modif); -// DEBUG : enlever ce die après analyse - die('DEBUG avant envoi OSM'); // Récupérer le token OSM depuis les variables d'environnement $osm_api_token = $_ENV['APP_OSM_BEARER']; diff --git a/src/Service/Motocultrice.php b/src/Service/Motocultrice.php index b49e3e2..66e7add 100644 --- a/src/Service/Motocultrice.php +++ b/src/Service/Motocultrice.php @@ -179,7 +179,7 @@ out meta;'; } if($has_opening_hours) { - $modified_request_post['commerce_tag_value__custom__opening_hours'] = $request_post['custom__opening_hours']; + $modified_request_post['commerce_tag_value__opening_hours'] = $request_post['custom__opening_hours']; } return $modified_request_post; diff --git a/templates/public/edit.html.twig b/templates/public/edit.html.twig index 01eccd9..6f3868b 100644 --- a/templates/public/edit.html.twig +++ b/templates/public/edit.html.twig @@ -142,7 +142,7 @@