Skip to content
Snippets Groups Projects
Unverified Commit 692eecb4 authored by Thomas Mortagne's avatar Thomas Mortagne Committed by GitHub
Browse files

Merge pull request #3903 from xwiki/backport/stable-16.10.x/pr-3899

[stable-16.10.x] XWIKI-22782: Only save modified xobjects (#3899)
parents 5f77fb9a d29bbeb6
No related branches found
No related tags found
No related merge requests found
......@@ -1181,7 +1181,11 @@ public XWikiDocument loadXWikiDoc(XWikiDocument defaultDocument, XWikiContext in
obj.setXClassReference(localGroupEntityReference);
obj.setNumber(number.intValue());
obj.setStringValue("member", member);
// Mark the property that has just been loaded as clean.
((BaseProperty<?>) obj.getField("member")).setDirty(false);
doc.setXObject(obj.getNumber(), obj);
// The object just been loaded so make sure it's considered clean
obj.setDirty(false);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment