Closed stijndm closed 3 years ago
@stijndm sorry for the late delay. the develop branch of sulu is far away from master branch (sulu-admin rewrite) - we will update this bundle to sulu 2.0 when everything is clear there.
No worries. For now I forked the bundle and fixed it at https://github.com/Nascom/SuluArticleBundle/commit/535487fd5095cf229253f83073964afdf174ced1
Not sure when this was fixed, but the bundle is compatible with new version of the FOSRestBundle
now. Thanks for reporting!
Actual Behavior
When in the admin on the article overview, clicking an article title to edit the article does nothing (API request in the background returns 500 internal error)
Expected Behavior
Edit form for the required article is displayed
Steps to Reproduce
Go to article overview, click on article title or pencil icon.
Possible Solutions
There seems to be a conflict in versions where Sulu is already running FOS 2.2 and SuluArticleBundle still expects 1.x.
It should be sufficient to to follow the upgrade instructions outlined at https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/UPGRADING-2.0.md. More specifically refactoring "setSerializationContext" in ArticleController.php.
I'm currently unsure if other changes are needed. Since I need this fixed rather soon I'll most likely have a look at it this week.