Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1 M2
-
Fix Version/s: 1.1 M3
-
Labels:None
-
keywords:action
-
Similar issues:
Description
How to reproduce:
edit some section in some document,
write edit comment (aka version summary)
save document
edit comment do not saved.
fix:
SaveAction.java
if (sectionNumber != 0) { XWikiDocument sectionDoc = (XWikiDocument) tdoc.clone(); sectionDoc.readFromForm((EditForm) form, context); String sectionContent = sectionDoc.getContent() + "\n"; String content = doc.updateDocumentSection(sectionNumber, sectionContent); tdoc.setContent(content); tdoc.setTitle(title); // this line is missing tdoc.setComment(sectionDoc.getComment()); } else { tdoc.readFromForm((EditForm) form, context); }