Skip to content

A free open source IT asset/license management system

add not_array (not ready, doesn't catch for specific exception)

spencerrlonggd4b9f6a2a47a
diff --git a/app/Models/Asset.php b/app/Models/Asset.php
index 9f15101d33..7f4f691628 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -91,7 +91,7 @@ class Asset extends Depreciable
protected $rules = [
'name' => 'max:255|nullable',
- 'model_id' => 'required|integer|exists:models,id,deleted_at,NULL',
+ 'model_id' => 'required|integer|exists:models,id,deleted_at,NULL|not_array',
'status_id' => 'required|integer|exists:status_labels,id',
'company_id' => 'integer|nullable',
'warranty_months' => 'numeric|nullable|digits_between:0,240',