Skip to content

A free open source IT asset/license management system

Small model validations

snipee5286229e0b2
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index 4e1b2c12bb..826aea7057 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -52,7 +52,7 @@ class Asset extends Depreciable
'model_id' => 'required|integer',
'status_id' => 'required|integer',
'company_id' => 'integer|nullable',
- 'warranty_months' => 'numeric|max:240|nullable',
+ 'warranty_months' => 'numeric|nullable',
'physical' => 'numeric|max:1|nullable',
'checkout_date' => 'date|max:10|min:10|nullable',
'checkin_date' => 'date|max:10|min:10|nullable',
diff --git a/app/Models/Location.php b/app/Models/Location.php
index 27623222c8..ecf8bee31a 100755
--- a/app/Models/Location.php
+++ b/app/Models/Location.php
@@ -17,7 +17,6 @@ class Location extends SnipeModel
protected $rules = array(
'name' => 'required|min:2|max:255|unique_undeleted',
'city' => 'min:3|max:255|nullable',
- 'state' => 'max:2|nullable',
'country' => 'min:2|max:2|nullable',
'address' => 'max:80|nullable',
'address2' => 'max:80|nullable',