KunstmaanBundlesCMS
KunstmaanBundlesCMS copied to clipboard
[NodeBundle] Publish of page with draft will always publish the draft
When you have an offline page with a draft and publish it, the draft version is published instead of the "main" version.
This is the logic that publishes a draft when there is one. https://github.com/Kunstmaan/KunstmaanBundlesCMS/blob/30d939f44f46916b908499248a267b907d2f209c/src/Kunstmaan/NodeBundle/Helper/NodeAdmin/NodeAdminPublisher.php#L73..L101
This logic is ok when the "main" version is online. So we should add a check that:
- if the "main" version is offline we alway publish this first
- if the "main" version is online and the page has a draft, we publish the draft version.
Extra: If the "main" page is offline don't allow to go into the draft and let the user only edit the main page.
Is there likely to be any advancement on this, we have several clients who keep getting stuck making changes to draft versions of pages that they then can't publish (clicking publish on a draft when there is a live version doesn't push those changes live).
Similarly if a live version is published while there is a draft, the draft then keeps reverting back to the live version when you try to save it.