From a6c21e1ae8af932a55ebd1a385f7011e34ecc5d8 Mon Sep 17 00:00:00 2001 From: Didier Date: Wed, 24 Jul 2024 08:05:40 +0200 Subject: [PATCH] fix bug --- app/Http/Controllers/ControlController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ControlController.php b/app/Http/Controllers/ControlController.php index 19fcd59..5e62253 100644 --- a/app/Http/Controllers/ControlController.php +++ b/app/Http/Controllers/ControlController.php @@ -406,8 +406,8 @@ public function edit(int $id) $attributes = DB::table('measures') ->select('attributes') ->get(); - foreach ($attributes as $attribute) { - foreach (explode(' ', $attribute->values) as $value) { + foreach ($attributes as $id => $key) { + foreach (explode(' ', $key->attributes) as $value) { array_push($values, $value); } }