Hello,
I am working at the customer.
I did a program to delete attachment functionnal in my XWiki
#foreach($attachment in $doc.getAttachmentList())
$doc.getDocument().deleteAttachment($attachment.getAttachment(), $context.context)
#end
But here the line is displaying without running
When I test I see the object Attachment
$attachment
But when I test the line is displaying without running
$attachment.getAttachment()
The Release Plan for version is 8.4.4, I have not access at the version of API
(the line is displaying without running)
$services.extension.core.getCoreExtension(‘org.xwiki.platform:xwiki-platform-extension-script’).id.version.value
Do you have an idea ?
Thanks,
Arnaud
PS : I see $context
and $doc
but not ‘$context.context’, ‘$doc.getDoc()’ and ‘$doc.getDocument()’