Hi, thanks again for responding. I’m using this (from the examples) to call the attachment selector:
{{attachmentSelector classname="Sandbox.Demo" property="avatar" savemode="direct" versionSummary="true" displayImage="true" width="120" link="true" filter="png,jpg,gif" defaultValue="XWiki.XWikiUserSheet@noavatar.png"/}}
I have full edit/view/comment rights on the page in question.
On my test box, the attachment selector comes up with a version summary field, but on the live one it doesn’t.
If I go back to edit the page and insert the macro using the form, the option to set “Version Summary” is also missing:
I’m not sure why this is different, and would appreciate some advice. I’ve looked at the xwiki.cfg options shown in the jira you linked, but that’s not the issue afaict.
I noticed in the source code for the attachment ui that it’s looking for $xwiki.hasEditComment
to be set to true
(line 224) so I put that in a velocity macro in the page, and I can confirm, it is set to true
. Not sure where to look after that, I’m still going through the source code.
BTW, I didn’t realise when you first replied that you are the developer. Thanks for taking the time to get back to me, and for writing the macro