From 8962ced0383dde162d664864e36f514c59046946 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Wed, 13 Mar 2024 10:40:50 -0500 Subject: [PATCH] push to switch branches --- app/Models/Asset.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 303624b427..9eeb8c59c3 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -244,8 +244,12 @@ class Asset extends Depreciable $this->{$field->db_column} = filter_var($this->{$field->db_column}, FILTER_VALIDATE_BOOLEAN); } } + $this->rules = array_merge( + $this->rules, + $model->fieldset->validation_rules(), + ); - $this->rules += $model->fieldset->validation_rules(); + //$this->rules += $model->fieldset->validation_rules(); if ($this->model->fieldset){ foreach ($this->model->fieldset->fields as $field){