Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.2-milestone-1
-
Unit, Integration
-
Medium
-
N/A
-
N/A
-
Description
Use this script to reproduce:
{{groovy}}
doc.setTitle("new title")
doc.save()
println doc.title
{{/groovy}}
The previous title is printed instead of the new title because the doc variable points to a different document instance after calling save().
Attachments
Issue Links
- is related to
-
XWIKI-8027 XWikiDocument#restoreContext doesn't restore properly the script context
-
- Closed
-