mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 14:41:03 +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'){
|
||||
foreach ($places as $place){
|
||||
$connectedFloors = array();
|
||||
$seen = new ArrayCollection();
|
||||
$seen[] = $floor->getId();
|
||||
foreach ($place->getConnectedPlaces() as $cp) {
|
||||
foreach ($cp->getFloors() as $cf) {
|
||||
if (!$seen->contains($cf->getId())){
|
||||
$connectedFloors[] = array('id' => $cf->getId(), 'name' => $cf->getName());
|
||||
$seen[] = $cf->getId();
|
||||
}
|
||||
foreach ($place->getFloors() as $f) {
|
||||
if ($f->getId() != $id) {
|
||||
$connectedFloors[] = array('id' => $f->getId(), 'name' => $f->getName());
|
||||
}
|
||||
}
|
||||
$jsonPlaces[] = array(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user