When trying to access preview for a draft, the "Version information" section contains information about the last published version (instead of the draft that is being previewed). Additionally, the "Back to edit" and "Publish" buttons are disabled.
The preview itself (the iframe) is correct (generated from the draft version).
This issue happens when using ezsystems/ezpublish-legacy version 5.4.11. Version 126.96.36.199 doesn't have this issue.
Steps to reproduce
- Create new eZ Publish installation.
- In the Legacy Admin, create a new Content Object and publish it.
- Edit the previously created Content Object. Click "Preview" under "Current draft" (which will correctly show a new draft version number).
- You will be presented with the correct preview. However, under "Version information" you will notice published version number instead of a new one. Also, the buttons "Back to edit" and "Publish" will be disabled.