core icon indicating copy to clipboard operation
core copied to clipboard

Unable to bring back old versions of templates

Open bryanboza opened this issue 2 years ago • 2 comments

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

image

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

bryanboza avatar Nov 15 '22 18:11 bryanboza

Not reproducible in 22.03 but in demo (23.01) yes

erickgonzalez avatar Feb 06 '23 20:02 erickgonzalez

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.

AndreyDotcms avatar Jun 02 '23 19:06 AndreyDotcms

On-Hold: Waiting for UI/UX to check if we should add a button in the template editing to bring back an old template.

erickgonzalez avatar Apr 01 '24 18:04 erickgonzalez

UI/UX will be done in another ticket https://github.com/dotCMS/core/issues/28417

erickgonzalez avatar May 02 '24 19:05 erickgonzalez

Works as intented! Now it renders the previous version.

erickgonzalez avatar May 06 '24 14:05 erickgonzalez

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

bryanboza avatar May 06 '24 19:05 bryanboza