|
@@ -146,9 +146,8 @@ class ONUController extends Controller
|
|
$location->setMapId($mapId);
|
|
$location->setMapId($mapId);
|
|
|
|
|
|
$em->persist($location);
|
|
$em->persist($location);
|
|
-
|
|
|
|
- $object->setUpdated(new \DateTime());
|
|
|
|
|
|
|
|
|
|
+ $object->setUpdated(new \DateTime());
|
|
$return[] = "LOCATION (id {$location->getId()}) {$action} - ONU (id {$object->getId()}) {$onu['text']} - " . json_encode($mapLocation);
|
|
$return[] = "LOCATION (id {$location->getId()}) {$action} - ONU (id {$object->getId()}) {$onu['text']} - " . json_encode($mapLocation);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -217,7 +216,7 @@ class ONUController extends Controller
|
|
foreach ($napsQuery as $nap) {
|
|
foreach ($napsQuery as $nap) {
|
|
if ($nap->getExtraData() != null) {
|
|
if ($nap->getExtraData() != null) {
|
|
$nap->setContainer($this->container);
|
|
$nap->setContainer($this->container);
|
|
- // Seteamos la direcci�n - direcci�n o null
|
|
|
|
|
|
+ // Seteamos la dirección - direccion o null
|
|
$address = $nap->getData('address');
|
|
$address = $nap->getData('address');
|
|
$dataNap = [
|
|
$dataNap = [
|
|
'id' => $nap->getId(),
|
|
'id' => $nap->getId(),
|
|
@@ -258,7 +257,7 @@ class ONUController extends Controller
|
|
'slot' => $nap->getSlot(),
|
|
'slot' => $nap->getSlot(),
|
|
'link' => $nap->getLink()
|
|
'link' => $nap->getLink()
|
|
];
|
|
];
|
|
- $naps[$nap->getId()] = $dataNap;
|
|
|
|
|
|
+ $naps[$nap->getId()] = $dataNap;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return $naps;
|
|
return $naps;
|