From dc77c01fd3de8744f59f03c9744457e8f9eed457 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 15 Feb 2024 13:00:38 -0800 Subject: [PATCH] removes spacing --- app/Http/Controllers/LabelsController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/LabelsController.php b/app/Http/Controllers/LabelsController.php index 6363ee671a..6537da077d 100755 --- a/app/Http/Controllers/LabelsController.php +++ b/app/Http/Controllers/LabelsController.php @@ -27,6 +27,7 @@ class LabelsController extends Controller public function show(string $labelName) { $setting = Setting::getSettings(); + //grabs the field selection selected and turns it into a multidimensional array $data = explode(';', Setting::getSettings()->label2_fields); $data = array_map(function($element) { @@ -80,8 +81,6 @@ class LabelsController extends Controller $exampleAsset->model->category->name = trans('admin/labels/table.example_category'); } - - foreach($field_selections as $key => $value) { $exampleAsset->{$value} = "{{$key}}"; }