mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
up submit en gardant les chamsp précédents, application de cuisine, clim et wheelchair
This commit is contained in:
parent
e96acf4ab8
commit
3fcc36f238
3 changed files with 2 additions and 9 deletions
|
@ -339,13 +339,6 @@ class PublicController extends AbstractController
|
||||||
$currentObjectData = $this->motocultrice->get_osm_object_data($osm_kind, $osm_object_id);
|
$currentObjectData = $this->motocultrice->get_osm_object_data($osm_kind, $osm_object_id);
|
||||||
$tags_before_modif = $currentObjectData['tags_converted'] ?? [];
|
$tags_before_modif = $currentObjectData['tags_converted'] ?? [];
|
||||||
$tags_after_modif = $tags;
|
$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
|
// Récupérer le token OSM depuis les variables d'environnement
|
||||||
$osm_api_token = $_ENV['APP_OSM_BEARER'];
|
$osm_api_token = $_ENV['APP_OSM_BEARER'];
|
||||||
|
|
|
@ -179,7 +179,7 @@ out meta;';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($has_opening_hours) {
|
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;
|
return $modified_request_post;
|
||||||
|
|
|
@ -142,7 +142,7 @@
|
||||||
|
|
||||||
<div id="validation_messages" class="alert alert-danger d-none"></div>
|
<div id="validation_messages" class="alert alert-danger d-none"></div>
|
||||||
<div class="d-grid gap-2 d-md-flex justify-content-md-end mt-4">
|
<div class="d-grid gap-2 d-md-flex justify-content-md-end mt-4">
|
||||||
<button type="submit" class="btn btn-primary col-12 col-md-5">
|
<button type="submit" class="btn btn-primary btn-lg col-12 col-md-5">
|
||||||
<i class="bi bi-send"></i>
|
<i class="bi bi-send"></i>
|
||||||
{{ 'display.submit'|trans }}
|
{{ 'display.submit'|trans }}
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue