Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility to symfony 7 in smart content data item #708

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Prokyonn
Copy link
Member

@Prokyonn Prokyonn commented Oct 31, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #703
License MIT

What's in this PR?

Adds additionally to the JMS Serializer Annotation also the Attributes, because with Symfony 7 the Annotations are ignored by default.

Why

This ended up in a serialized resource (the ArticleViewDocument) and was rendered in the Admin as [Object Object]. Furthermore this could end in some projects in a 500 error, because the extended ArticleViewDocument was not serializeable by the JMS Serializer.

image

@alexander-schranz alexander-schranz added the bug Error or unexpected behavior of already existing functionality label Oct 31, 2024
@alexander-schranz alexander-schranz merged commit f92f2fb into sulu:2.6 Oct 31, 2024
8 of 9 checks passed
@alexander-schranz alexander-schranz changed the title Fix symfony 7 compatibility Fix compatibility to symfony 7 in smart content data item Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Smart content type displays [object Object]
2 participants