Last modified by Alex Cotiugă on 2026/05/02 12:23

From version 13.157
edited by Alex Cotiugă
on 2026/05/02 09:06
Change comment: There is no comment for this version
To version 13.154
edited by Alex Cotiugă
on 2026/05/02 08:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,10 +1,7 @@
1 1  {{velocity wiki="false"}}
2 2  #if ($xcontext.action == 'get')
3 3   #set ($message = '')
4 - #set ($now = $datetool.get('yyyyMMddHHmm'))
5 - #set ($random = $mathtool.random(100000, 999999))
6 - #set ($uniqueName = "contact-request-${now}-${random}")
7 - #set ($contactFormEntryDoc = $xwiki.getDocument('ContactRequests.' + $uniqueName))
4 + #set ($contactFormEntryDoc = $xwiki.getDocument('ContactFormEntries' + $java.util.UUID.randomUUID()))
8 8   #set ($statusCode = 200)
9 9   #set ($message = "$contactFormEntryDoc")
10 10