Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10036

It's possible to modify a document without getting a new entry in the history

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 5.4.1, 6.0-milestone-1
    • 5.4
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      When history is enabled of course.

      You end up with the version properly set in the document table and rcs table but the actual history is not updated which mean among other things that you don't see your version version in the history view but the content is definitely changed.

      How to:

      document.setContentDirty(false);
      document.setMetaDataDirty(false);
      xwiki.saveDocument(document);
      

      We could say that it's a feature but the UI does not seems to be aware of such a feature...

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: