Änderungen von Dokument User Directory Macros

Zuletzt geändert von admin am 2026/07/07 19:09

Von Version 2.1
bearbeitet von admin
am 2022/03/08 16:29
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-user-directory-ui/14.1]
Auf Version 5.1
bearbeitet von admin
am 2026/05/16 13:59
Änderungskommentar: Install extension [org.xwiki.platform:xwiki-platform-user-directory-ui/18.3.0]

Zusammenfassung

Details

Seiteneigenschaften
Inhalt
... ... @@ -97,7 +97,7 @@
97 97   'sortable': false,
98 98   'filterable': false
99 99   }))
100 - #elseif ($classPropertyType.endsWith('TextArea') || $classPropertyType.endsWith('Email') || $classPropertyType.endsWith('Groups'))
100 + #elseif ($classPropertyType.endsWith('TextArea') || $classPropertyType.endsWith('Email') || $classPropertyType.endsWith('Groups') || $classPropertyType == 'String')
101 101   #set ($columnProperties.html = true)
102 102   #end
103 103   #set ($discard = $columnsProperties.put($column, $columnProperties))
... ... @@ -238,8 +238,7 @@
238 238  #macro (displayProperty $propertyName $object $action)
239 239   #set ($propertyClass = $object.xWikiClass.get($propertyName))
240 240   #set ($isCheckbox = $propertyClass.getValue('displayFormType') == 'checkbox')
241 - #set ($fieldDisplay = $stringtool.removeEnd($stringtool.removeStart($object.display($propertyName, $action),
242 - '{{html clean="false" wiki="false"}}'), '{{/html}}'))
241 + #set ($fieldDisplay = "#unwrapXPropertyDisplay($object.display($propertyName, $action))")
243 243   <dt>
244 244   <label #if ($action == 'edit' && !$isCheckbox)
245 245   for="$escapetool.xml("${object.xWikiClass.name}_${object.number}_$propertyName")"#end>
... ... @@ -271,7 +271,8 @@
271 271   $escapetool.url({
272 272   'customize': true,
273 273   'action': 'reset',
274 - 'xredirect': $xredirect
273 + 'xredirect': $xredirect,
274 + 'form_token': $services.csrf.token
275 275   }),
276 276   "$doc.fullName",
277 277   'customize=true'