From d9f5f1182a3f8b27c14f845f3050bac89c365737 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Tue, 25 May 2021 23:09:27 -0500 Subject: [PATCH] Delete a couple lines that rewrites validation rules for asset tags in the model Asset.php:save() method. --- app/Models/Asset.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 813fb6d3a4..d26f8dbc94 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -180,11 +180,6 @@ class Asset extends Depreciable */ public function save(array $params = []) { - $settings = \App\Models\Setting::getSettings(); - - // I don't remember why we have this here? Asset tag would always be required, even if auto increment is on... - $this->rules['asset_tag'] = ($settings->auto_increment_assets == '1') ? 'max:255' : 'required'; - if($this->model_id != '') { $model = AssetModel::find($this->model_id);