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

BaseProperty#setOwnerDocument sets the content as dirty when updating a property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.1
    • Fix Version/s: 5.1-rc-1
    • Component/s: Old Core
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The method

      public void setOwnerDocument(XWikiDocument ownerDocument)
          {
              this.ownerDocument = ownerDocument;
              if (ownerDocument != null && isValueDirty) {
                  ownerDocument.setContentDirty(true);
              }
          }
      

      from "BaseProperty.java" marks the content as dirty even though you only update a property.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                raluca.moisa Raluca Moisa
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: