From 7be10cc72f46d3347e8baacfacccc79e9275c07e Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 30 May 2023 19:54:26 +0600 Subject: [PATCH] handling groups of fields fix Use native fields cleaning to avoid a deep values removing --- src/Repositories/Behaviors/HandleFieldsGroups.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/Behaviors/HandleFieldsGroups.php b/src/Repositories/Behaviors/HandleFieldsGroups.php index c35ff27ff..f2f1f7d6c 100644 --- a/src/Repositories/Behaviors/HandleFieldsGroups.php +++ b/src/Repositories/Behaviors/HandleFieldsGroups.php @@ -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;