0 Votes

Changes for page Attachments

Last modified by Сергей Коршунов on 2025/05/01 20:26

From version 7.1
edited by Сергей Коршунов
on 2022/12/22 17:40
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.10.1]
To version 8.1
edited by Сергей Коршунов
on 2023/01/10 12:09
Change comment: Install extension [org.xwiki.platform:xwiki-platform-attachment-ui/14.10.2]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -159,7 +159,7 @@
159 159  #elseif ($xcontext.action == 'inline' || $xcontext.action == 'edit')
160 160   (% class="attachment-picker" %)(((##
161 161   #attachmentPicker_displayAttachment($propValue $displayImage false true) #attachmentPicker_displayButton()##
162 - {{html}}<input type="hidden" name="${classname}_${object}_${property}" value="${propValue}" class="property-reference"/>{{/html}}##
162 + {{html}}<input type="hidden" name="$escapetool.xml("${classname}_${object}_${property}")" value="$escapetool.xml("${propValue}")" class="property-reference"/>{{/html}}##
163 163   )))
164 164  #else
165 165   #attachmentPicker_displayAttachment($propValue $displayImage $link false)