Changes for page Available

From version 86.8
edited by Andrea Omicini
on 28/09/2023 23:42
Change comment: There is no comment for this version
To version 86.9
edited by Andrea Omicini
on 28/09/2023 23:44
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -11,6 +11,11 @@
11 11   #set( $query = ", BaseObject as objPersonalThesis, LargeStringProperty as propUser
12 12   where objPersonalThesis.name = doc.fullName and objPersonalThesis.className = '${objectSpace}.Class' and propUser.id.id = objPersonalThesis.id and propUser.name = 'user' and propUser.value = '$userName' " )
13 13   #set( $personalThesisDocs = $xwiki.searchDocuments($query) )
14 + #if( $personalThesisDocs.size() > 0 )
15 + #set( $personalThesisDoc = $xwiki.getDocument($personalThesisDocs[0]) )
16 + #else
17 + #stop
18 + #end
14 14   #if( $personalThesisDoc.ams && $personalThesisDoc.ams != "" )
15 15   #set( $showAms = $personalThesisDoc.getValue('ams') )
16 16   #end