Skip to content

Firefly III: a personal finances manager

Fix #2033

James Cole8607fd4997ef
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',
];
}