mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 22:51:04 +01:00
I forgot to ctrl S, ooopsiiiiiiiiii
This commit is contained in:
parent
8abdf2576a
commit
33d15d4400
@ -95,14 +95,9 @@ class MapApiController extends AbstractController
|
|||||||
if ($representation == 'Cylinder' || $representation == 'PolySurface'){
|
if ($representation == 'Cylinder' || $representation == 'PolySurface'){
|
||||||
foreach ($places as $place){
|
foreach ($places as $place){
|
||||||
$connectedFloors = array();
|
$connectedFloors = array();
|
||||||
$seen = new ArrayCollection();
|
foreach ($place->getFloors() as $f) {
|
||||||
$seen[] = $floor->getId();
|
if ($f->getId() != $id) {
|
||||||
foreach ($place->getConnectedPlaces() as $cp) {
|
$connectedFloors[] = array('id' => $f->getId(), 'name' => $f->getName());
|
||||||
foreach ($cp->getFloors() as $cf) {
|
|
||||||
if (!$seen->contains($cf->getId())){
|
|
||||||
$connectedFloors[] = array('id' => $cf->getId(), 'name' => $cf->getName());
|
|
||||||
$seen[] = $cf->getId();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$jsonPlaces[] = array(
|
$jsonPlaces[] = array(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user