Skip to content

Commit 6454dea

Browse files
committed
Normalize attributes key in SubscribePageData
1 parent c3bde58 commit 6454dea

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Subscription/Serializer/SubscribePageDataNormalizer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public function normalize($object, string $format = null, array $context = []):
2626
return [];
2727
}
2828

29+
if ($object->getName() === 'attributes') {
30+
$object->setData(trim(str_replace('+', ',', $object->getData()), ','));
31+
}
32+
2933
return [
3034
'key' => $object->getName(),
3135
'value' => $object->getData(),

0 commit comments

Comments
 (0)