Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
16.9.0
-
None
-
Unknown
-
Description
To reproduce:
- create a document with the following content:
{{velocity}}
#set ($titleDate = $datetool.date)
$doc.setTitle("$titleDate")
$doc.save()
{{/velocity}}
{{velocity}}
Expected title: $titleDate
Title in \$doc: $doc.title
{{/velocity}}
-> the display actually show the version before the modification and the save instead of the current state of the document
Paradoxically, if the document is *not* saved, then the second macros end up with the modified version of $doc.