From eba24b9242a1c4399e5962e67dce0a0d8ae15d3e Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 8 Jul 2024 13:19:05 +0100 Subject: [PATCH] =?UTF-8?q?Removed=20custom=20fieldsets=20on=20auditing=20?= =?UTF-8?q?-=20it=E2=80=99s=20not=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: snipe --- .../Controllers/Assets/AssetsController.php | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index 82c68eb01a..1f4c787a63 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -905,26 +905,7 @@ class AssetsController extends Controller if ($request->input('update_location') == '1') { $asset->location_id = $request->input('location_id'); } - - if (($asset->model->fieldset)) { - foreach ($asset->model->fieldset->fields as $field) { - if ($field->field_encrypted == '1') { - if (Gate::allows('admin')) { - if (is_array($request->input($field->db_column))) { - $asset->{$field->db_column} = Crypt::encrypt(implode(', ', $request->input($field->db_column))); - } else { - $asset->{$field->db_column} = Crypt::encrypt($request->input($field->db_column)); - } - } - } else { - if (is_array($request->input($field->db_column))) { - $asset->{$field->db_column} = implode(', ', $request->input($field->db_column)); - } else { - $asset->{$field->db_column} = $request->input($field->db_column); - } - } - } - } + /** * Invoke Watson Validating to check the asset itself and check to make sure it saved correctly.