Closed Olivier127 closed 6 months ago
Identical to the #7348 of sulu
The extensions must be refresh
Change this code inside ArticleObjectProvider
public function setValues($object, $locale, array $data) { $propertyAccess = PropertyAccess::createPropertyAccessorBuilder() ->enableMagicCall() ->getPropertyAccessor(); $structure = $object->getStructure(); foreach ($data as $property => $value) { try { $propertyAccess->setValue($structure, $property, $value); } catch (\InvalidArgumentException $e) { // @ignoreException //ignore not existing properties } } }
to this code
public function setValues($object, $locale, array $data) { $propertyAccess = PropertyAccess::createPropertyAccessorBuilder() ->enableMagicCall() ->getPropertyAccessor(); $structure = $object->getStructure(); foreach ($data as $property => $value) { try { if ('ext' === $property) { $object->setExtensionsData(new ExtensionContainer($value)); continue; } $propertyAccess->setValue($structure, $property, $value); } catch (\InvalidArgumentException $e) { //ignore not existing properties } } }
Actual Behavior
Identical to the #7348 of sulu
Expected Behavior
The extensions must be refresh
Steps to Reproduce
Identical to the #7348 of sulu
Possible Solutions
Change this code inside ArticleObjectProvider
to this code