Skip to content

Commit

Permalink
Merge branch '1.8' into 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed Nov 22, 2024
2 parents cdcd994 + 1392c77 commit d25b3ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ public function process($object, $newValue, $args, $context, ResolveInfo $info)

if ($element) {
$data = [];
$columns = [];
$metaData = $newValueItemValue['metadata'] ?? null;
if ($metaData) {
foreach ($metaData as $metaDataKey => $metaDataValue) {
$columns[] = $metaDataValue['name'];
$data[$metaDataValue['name']] = $metaDataValue['value'];
}
}
$item = new ElementMetadata($fieldName, $columns ?? [], $element);
$item = new ElementMetadata($fieldName, $columns, $element);
if ($data !== []) {
$item->setData($data);
}
Expand Down

0 comments on commit d25b3ea

Please sign in to comment.