Changes for page Get in Touch About Your XWiki Project
Last modified by Alex Cotiugă on 2026/05/02 12:23
From version 13.154
edited by Alex Cotiugă
on 2026/05/02 08:58
on 2026/05/02 08:58
Change comment:
There is no comment for this version
To version 13.156
edited by Alex Cotiugă
on 2026/05/02 09:05
on 2026/05/02 09:05
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,10 @@ 1 1 {{velocity wiki="false"}} 2 2 #if ($xcontext.action == 'get') 3 3 #set ($message = '') 4 - #set ($contactFormEntryDoc = $xwiki.getDocument('ContactFormEntries' + $java.util.UUID.randomUUID())) 4 + #set ($now = $datetool.get('yyyyMMddHHmmssSSS')) 5 + #set ($random = $mathtool.random(100000, 999999)) 6 + #set ($uniqueName = "contact-request-${now}-${random}") 7 + #set ($contactFormEntryDoc = $xwiki.getDocument('ContactRequests.' + $uniqueName)) 5 5 #set ($statusCode = 200) 6 6 #set ($message = "$contactFormEntryDoc") 7 7