-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hi,
Seems there is a problem with static content.
I'm experiencing a problem while saving static content with route or while saving route or while saving menu linked with static content.
Or in short while a CMS form use the ContentChoiceType form element.
The error is not exactly the same as @antonioperic in the #2682 issue, but I'm sure this is the same bug.
Problem is :
I can't update a page if a route has been defined.
If no route, no problem. Tried to directly save a route and error ("This value is not valid").
After a Xdebug day :( I found that CMF save the static content linked with route using the id (eg: /cms/pages/test, generated by the ContentChoiceType choice list), but before saving the route content it makes a query in the document manager to check if a static page with the id exists, but in the document props (in mysql db table phpcr_nodes), there is no "sv:property" with "sv:name" : id.
If I create a node elsewhere in the props db field like this :
<sv:property sv:name="id" sv:type="String" sv:multi-valued="0">
<sv:value length="15">/cms/pages/test</sv:value>
</sv:property>
no problem, route is correctly saved with linked content.
Maybe there is a modification in CMF that introduce a change in the way CMF documents are saved, and the ContentChoiceType form element need to be updated.
I searched an entire day without success. Maybe someone more experienced than me with Symfony can tell me where the bug is.
Does anyone can confirm this bug ?
- Can't save a static content with a route,
- Can't save a route with a linked static content,
- Can't save a menu element with a linked static content.
It's an annoying bug which break the CMS functionnality.
I will try to search & resolve this bug, but help is appreciated ;)