core icon indicating copy to clipboard operation
core copied to clipboard

Bring back an old version brings back the wrong version

Open ghost opened this issue 13 years ago • 3 comments

  1. Log into the dotCMS admin
  2. Navigate to directory containing vtl assets in the Site browser
  3. Open a vtl asset that has no working changes yet
  4. Click on "Lock for Editing"
  5. Click on "edit text"
  6. In the top of the file add the text "hello world" and click on Save
  7. Click on "Save / Publish", you'll get send back to the site browser.
  8. Open the vtl again.
  9. Open the "History" tab
  10. Click on "Bring back" for the previous version (the one without the hello world text) and accept the message that pops up
  11. Click on "Lock for Editing"
  12. Click "Save / Publish", you'll get send back to the site browser
  13. Open the vtl again
  14. 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.

ghost avatar Sep 25 '13 16:09 ghost

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

bryanboza avatar Sep 27 '13 18:09 bryanboza

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 avatar Oct 03 '13 13:10 jorith88

@jorith88 I would take a look at the diff of this branch verse the release. There are a bunch of commits on different issues.

jtesser avatar Oct 03 '13 15:10 jtesser