Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Jul 24, 2024
1 parent 9efa056 commit a6c21e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/ControlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a6c21e1

Please sign in to comment.