core
core copied to clipboard
Unable to bring back old versions of templates
When you are working with some template and go to the history tab and try to bring back to an old version of this, we are getting an exception and we are unable to bring back
Stack: https://gist.github.com/bryanboza/93181818e54ed66aef0533030bd2fd83
To Reproduce
- Create a new template
- Edit the template and create a new version
- Go to the history tab and try to bring back the previous version
Expected behavior
We need to be able to bring it back without problems
Desktop (please complete the following information):
Tested on release-22.11 // Docker // FF
Not reproducible in 22.03 but in demo (23.01) yes
To reproduce this issue take in count the next video:
https://github.com/dotCMS/core/assets/127987858/e0de0e23-62e4-4e50-9737-c7d0992bd49e
This could be a FE issue, feel free to reach me in case to have some doubts.
On-Hold: Waiting for UI/UX to check if we should add a button in the template editing to bring back an old template.
UI/UX will be done in another ticket https://github.com/dotCMS/core/issues/28417
Works as intented! Now it renders the previous version.
Ok after this fix, now we are able to render the previous version, but we still unable to bring back to this version, New card related to it here #28417