0 Votes

Changes for page Public Web Site

Last modified by Alex Cotiugă on 2025/11/27 10:42

From version 3.65
edited by Alex Cotiugă
on 2025/11/24 12:35
Change comment: There is no comment for this version
To version 3.62
edited by Alex Cotiugă
on 2025/11/24 12:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -175,7 +175,7 @@
175 175  #macro (displayFormFromSheetCode)
176 176   #set ($editing = true)
177 177   ## The object to display.
178 - #set ($xobject = $doc.newObject('Agnease.Code.Lead.LeadClass'))
178 + #set ($xobject = $doc.getObject('Agnease.Code.Lead.LeadClass'))
179 179   ## The class that describes the object properties.
180 180   #set ($xclass = $xwiki.getClass('Agnease.Code.Lead.LeadClass'))
181 181   ## Make sure the following display* method calls use the right object.
... ... @@ -197,7 +197,7 @@
197 197   ## Support for specifying a translation key as hint in the property definition.
198 198   <span class="xHint">$!escapetool.xml($services.localization.render($property.hint))</span>
199 199   </dt>
200 - <dd>$doc.display($property.name, 'edit')</dd>
200 + <dd>$doc.display($property.name)</dd>
201 201   #end
202 202   #if (!$xclass.properties || $xclass.properties.size() == 0)
203 203   ## Keep the empty definition term in order to have valid HTML.