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}}"; }