core
core copied to clipboard
Bring back an old version brings back the wrong version
- Log into the dotCMS admin
- Navigate to directory containing vtl assets in the Site browser
- Open a vtl asset that has no working changes yet
- Click on "Lock for Editing"
- Click on "edit text"
- In the top of the file add the text "hello world" and click on Save
- Click on "Save / Publish", you'll get send back to the site browser.
- Open the vtl again.
- Open the "History" tab
- Click on "Bring back" for the previous version (the one without the hello world text) and accept the message that pops up
- Click on "Lock for Editing"
- Click "Save / Publish", you'll get send back to the site browser
- Open the vtl again
- Look at the vtl content: it contains the "hello world" text. This is not what I expected.
You can fix this by opening the vtl again, removing the hello world text and save/publish it.
Passed, tested on master 2.5 and now you can bring back to old versions without problems
Added to test scripts: http://qa.dotcms.com/index.php?/cases/view/616
I see a couple of different commits that should fix this issue, but also other issues. What code changes do I need to do to create a hotfix plugin for this one?
@jorith88 I would take a look at the diff of this branch verse the release. There are a bunch of commits on different issues.