From be8f0a148688fe9e57eca639d0c1cb15a8a2aaff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 10 Jun 2020 23:58:09 +0200 Subject: [PATCH] MAPG-119 fix distribution of the ids of the newly created places --- src/Controller/MapAdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/MapAdminController.php b/src/Controller/MapAdminController.php index 76a1592..cf3acbc 100644 --- a/src/Controller/MapAdminController.php +++ b/src/Controller/MapAdminController.php @@ -83,7 +83,7 @@ class MapAdminController implements ISecured foreach ($_POST['added'] as $placeRaw) { $placeRaw = json_decode($placeRaw, true); - $addedIds[] = ['tempId' => $placeRaw['id'], $this->placeRepository->addToMap($mapId, [ + $addedIds[] = ['tempId' => $placeRaw['id'], 'id' => $this->placeRepository->addToMap($mapId, [ 'lat' => (float) $placeRaw['lat'], 'lng' => (float) $placeRaw['lng'], 'pano_id_cached_timestamp' => $placeRaw['panoId'] === -1 ? (new DateTime('-1 day'))->format('Y-m-d H:i:s') : null