Skip to content

Commit

Permalink
handling groups of fields fix
Browse files Browse the repository at this point in the history
Use native fields cleaning to avoid a deep values removing
  • Loading branch information
yamaha252 authored and ifox committed Aug 10, 2023
1 parent 073b044 commit 7be10cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/Behaviors/HandleFieldsGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function handleFieldsGroups($fields)
$fields[$group] = null;
}

Arr::forget($fields, $groupFields);
$fields = array_filter($fields, fn($key) => !in_array($key, $groupFields), ARRAY_FILTER_USE_KEY);
}

return $fields;
Expand Down

0 comments on commit 7be10cc

Please sign in to comment.