Skip to content

Commit 3382d31

Browse files
fix localized fields sometimes missing fields in search preview
1 parent 89a1f59 commit 3382d31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DataObject/Data/Adapter/LocalizedFieldsAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function getPreviewFieldData(
199199
return $data;
200200
}
201201
$language = $this->getPreviewLanguage($value);
202-
$attributes = array_keys(reset($originalValue));
202+
$attributes = array_keys(array_merge(...array_values($originalValue)));
203203

204204
foreach ($attributes as $attribute) {
205205
try {

0 commit comments

Comments
 (0)