From 814552b448854b5d1ece2f6ff0c2193bacb7980f Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 14 Dec 2023 09:46:55 +0000 Subject: [PATCH] null --- src/Http/Requests/FrontendFormRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Requests/FrontendFormRequest.php b/src/Http/Requests/FrontendFormRequest.php index d9dfd7e1c0..01537ce00a 100644 --- a/src/Http/Requests/FrontendFormRequest.php +++ b/src/Http/Requests/FrontendFormRequest.php @@ -118,7 +118,7 @@ private function removeNullsFromCheckboxes($fields, $values) { $fields->all() ->filter(fn ($field) => $field->fieldtype()->handle() === 'checkboxes') - ->each(fn ($field) => Arr::set($values, $field->handle(), collect(Arr::get($values, $field->handle(), []))->reject(fn ($value) => $value === null)->all())); + ->each(fn ($field) => Arr::set($values, $field->handle(), collect(Arr::get($values, $field->handle(), []))->reject(fn ($value) => $value === 'null')->all())); return $values; }