From ab222c0d68cc9e5294d901b5e0a2334880b164c2 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 17 Dec 2024 17:35:21 +0000 Subject: [PATCH] Revert "Filter out null values to prevent them being saved to the tree." This reverts commit 5d7e991dcf1ece659c931b54b4cad784c3f36edb. --- .../Controllers/CP/Navigation/NavigationTreeController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/Controllers/CP/Navigation/NavigationTreeController.php b/src/Http/Controllers/CP/Navigation/NavigationTreeController.php index 75408d71b4..67c9a2f477 100644 --- a/src/Http/Controllers/CP/Navigation/NavigationTreeController.php +++ b/src/Http/Controllers/CP/Navigation/NavigationTreeController.php @@ -66,8 +66,7 @@ private function updateData(array $data, Blueprint $blueprint) ->addValues($branch['values'] ?? []) ->process() ->values() - ->only($branch['localizedFields'] ?? []) - ->filter(); + ->only($branch['localizedFields'] ?? []); if ($branch['new'] ?? false) { $newId = BranchIdGenerator::generate();