From 44ea6dca006fcf517b74456da644fb78e98d7829 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Tue, 5 Nov 2024 23:46:37 +0100 Subject: [PATCH] [5.x] Fix typeahead relationship input corrupting data (#11059) --- src/Fieldtypes/Terms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fieldtypes/Terms.php b/src/Fieldtypes/Terms.php index 3b4770999e..440fa33315 100644 --- a/src/Fieldtypes/Terms.php +++ b/src/Fieldtypes/Terms.php @@ -207,6 +207,7 @@ public function process($data) return explode('::', $id, 2)[1]; }) ->unique() + ->values() ->all(); if ($this->field->get('max_items') === 1) {