From 98fc73562208d4263b45242e88b1df6d3a4c6031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 11 Jun 2020 10:33:59 +0200 Subject: [PATCH] MAPG-128 set all default values when creating a new map --- src/Controller/MapAdminController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Controller/MapAdminController.php b/src/Controller/MapAdminController.php index cf3acbc..2cf280f 100644 --- a/src/Controller/MapAdminController.php +++ b/src/Controller/MapAdminController.php @@ -155,7 +155,11 @@ class MapAdminController implements ISecured $modify = new Modify(\Container::$dbConnection, 'maps'); $modify->fill([ 'name' => self::$unnamedMapName, - 'description' => '' + 'description' => '', + 'bound_south_lat' => 0.0, + 'bound_west_lng' => 0.0, + 'bound_north_lat' => 0.0, + 'bound_east_lng' => 0.0 ]); $modify->save();