Hi all,
When executing the script below (considering an inexistent “Main.MyPage”), the author and date attributes are set as expected, however the “defaultLanguage” field is empty, while a default language is set at the wiki level in the XWikiPreferences object.
{{velocity}}
#set ($xdoc = $xwiki.getDocument('Main.MyPage'))
* Author: $xdoc.author
* Date: $xdoc.date
* Default language: $xdoc.defaultLanguage
{{/velocity}}
Is this behaviour implemented on purpose, or should it be considered as a bug? Following a discussion with @lucaa, I understand there might be underlying API breakage considerations?
Related links:
- https://jira.xwiki.org/browse/XWIKI-15159
- https://forum.xwiki.org/t/how-do-i-change-or-set-a-language-on-a-page/2834
Cheers,
Stéphane