Skip to content

A free open source IT asset/license management system

Fixed #5272 - make city min length 2 instead of 3

snipea510ac405292
diff --git a/app/Models/Location.php b/app/Models/Location.php
index ce6d06906e..2da77b7ff5 100755
--- a/app/Models/Location.php
+++ b/app/Models/Location.php
@@ -20,7 +20,7 @@ class Location extends SnipeModel
protected $table = 'locations';
protected $rules = array(
'name' => 'required|min:2|max:255|unique_undeleted',
- 'city' => 'min:3|max:255|nullable',
+ 'city' => 'min:2|max:255|nullable',
'country' => 'min:2|max:2|nullable',
'address' => 'max:80|nullable',
'address2' => 'max:80|nullable',