Pārlūkot izejas kodu

Merge branch 'develop'

master
Guillaume Bourgeois pirms 1 nedēļas
vecāks
revīzija
c95be083e3
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      Controller/Address/AddressApiController.php

+ 5
- 2
Controller/Address/AddressApiController.php Parādīt failu

@@ -27,10 +27,13 @@ class AddressApiController extends AbstractController
$data['nom'] = $term;
}

$result = array_merge(
// Uniquement bourgogne franche-comté
/*$result = array_merge(
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 27]))),
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 44])))
);
);*/

$result = json_decode($citiesComponent->callCitiesApi('get', 'communes', $data));

$return = [];
foreach ($result as $city) {

Notiek ielāde…
Atcelt
Saglabāt