From 8607fd4997efabdab69d0648830015b51fd7d463 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 28 Jan 2019 18:21:22 +0100 Subject: [PATCH] Fix #2033 --- app/Api/V1/Requests/TagRequest.php | 2 +- app/Http/Requests/TagFormRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Api/V1/Requests/TagRequest.php b/app/Api/V1/Requests/TagRequest.php index 3ae2b9eff6..78dad9c6c1 100644 --- a/app/Api/V1/Requests/TagRequest.php +++ b/app/Api/V1/Requests/TagRequest.php @@ -74,7 +74,7 @@ class TagRequest extends Request 'description' => 'min:1|nullable', 'date' => 'date|nullable', 'latitude' => 'numeric|min:-90|max:90|nullable|required_with:longitude', - 'longitude' => 'numeric|min:-90|max:90|nullable|required_with:latitude', + 'longitude' => 'numeric|min:-180|max:180|nullable|required_with:latitude', 'zoom_level' => 'numeric|min:0|max:80|nullable', ]; switch ($this->method()) { diff --git a/app/Http/Requests/TagFormRequest.php b/app/Http/Requests/TagFormRequest.php index d778c3af8e..003fcc266c 100644 --- a/app/Http/Requests/TagFormRequest.php +++ b/app/Http/Requests/TagFormRequest.php @@ -92,7 +92,7 @@ class TagFormRequest extends Request 'description' => 'min:1|nullable', 'date' => 'date|nullable', 'latitude' => 'numeric|min:-90|max:90|nullable', - 'longitude' => 'numeric|min:-90|max:90|nullable', + 'longitude' => 'numeric|min:-180|max:180|nullable', 'zoom_level' => 'numeric|min:0|max:80|nullable', ]; }