Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 3.133
edited by Jip-jan Alunkel
on March 11, 14:11
on March 11, 14:11
Change comment:
Rollback to version 1.38
To version 3.134
edited by Jip-jan Alunkel
on March 11, 14:15
on March 11, 14:15
Change comment:
Rollback to version 1.38
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,13 +10,15 @@ 10 10 #set($subjectTitle = $subjectReference.getName()) 11 11 #set($docObjects = $doc.getxWikiObjects()) 12 12 #foreach($docObjectKey in $docObjects.keySet()) 13 - $docObjectKey.indexOf($subjectTitle) 13 + #if($docObjectKey.indexOf($subjectTitle) == 0) 14 + #set($theDocObj = $docObjects[$docObjectKey]) 15 + #end 14 14 #end 15 - 17 +$theDocObj.getProperty('user').value 16 16 #set($isInline = $xcontext.action == 'edit' && $request.get('editor') == 'inline') 17 17 #set($theClass = "homeopaths.Code.homeopathsClass") 18 18 ## Create object (important for sheet binding, do not remove) 19 -#set($theDocObj = $doc.getObject($theClass, true)) 21 +##set($theDocObj = $doc.getObject($theClass, true)) 20 20 #set($hasRight = !$isGuest && ($theDocObj.getProperty('user').value == $context.getUser() || $hasAdmin)) 21 21 $theDoc.getContent() 22 22 {{html wiki="true" clean="false"}}