From f88683766b1c7e9636aebe2fc952e6f036d3882c Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 14 May 2020 00:55:47 -0700 Subject: [PATCH] Roll back previous change Signed-off-by: snipe --- app/Http/Requests/AssetRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Requests/AssetRequest.php b/app/Http/Requests/AssetRequest.php index 47f039dcb393..72c3a89ccbd5 100644 --- a/app/Http/Requests/AssetRequest.php +++ b/app/Http/Requests/AssetRequest.php @@ -46,6 +46,8 @@ public function rules() $settings = \App\Models\Setting::getSettings(); + $rules['asset_tag'] = ($settings->auto_increment_assets == '1') ? 'max:255' : 'required'; + if ($this->request->get('model_id') != '') { $model = AssetModel::find($this->request->get('model_id'));