A free open source IT asset/license management system
Cap warranty months to three characters
snipe15bfd07f303a
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex fbb2dbad5a..0f076bb14e 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -75,7 +75,7 @@ class Asset extends Depreciable'model_id' => 'required|integer|exists:models,id','status_id' => 'required|integer|exists:status_labels,id','company_id' => 'integer|nullable',- 'warranty_months' => 'numeric|nullable',+ 'warranty_months' => 'numeric|nullable|max:3','physical' => 'numeric|max:1|nullable','checkout_date' => 'date|max:10|min:10|nullable','checkin_date' => 'date|max:10|min:10|nullable',