Changes for page Recent Changes
on 2026/11/28 07:54
on 2009/09/08 18:00
Summary
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - $msg.get("xe.recentchanges")1 +Recent Changes - Content
-
... ... @@ -118,17 +118,31 @@ 118 118 ## If any, loop over criterias to add them to the query, then perform the query. 119 119 #set($values = $util.getArrayList()) 120 120 #foreach($criterion in $criteria.keySet()) 121 - #if($criteria.get($criterion).size() > 0) 121 + #if($criteria.get($criterion) && $criteria.get($criterion).size() > 0) 122 122 #set($hqlQuery = $hqlQuery.replaceAll("where", "where ${criterion} and")) 123 123 #set($discard = $values.addAll(0, $criteria.get($criterion))) 124 124 #end 125 125 #end 126 - #set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0, $values)) 126 +#set ($legacyRaw2c943fa57f_1 = $services.query.hql($hqlQuery).bindValues($values).setLimit($rcChangesNb).setOffset(0).execute()) 127 +#set ($legacyVisible2c943fa57f_1 = []) 128 +#foreach ($legacyEntry2c943fa57f_1 in $legacyRaw2c943fa57f_1) 129 + #if ($xwiki.hasAccessLevel('view', $xcontext.user, $legacyEntry2c943fa57f_1)) 130 + #set ($legacyVisibilityDiscard = $legacyVisible2c943fa57f_1.add($legacyEntry2c943fa57f_1)) 131 + #end 132 +#end 133 + #set($rcDocumentNames = $legacyVisible2c943fa57f_1) 127 127 #else 128 128 ## No query criterion, perform the query as is. 129 - #set($rcDocumentNames = $xwiki.searchDocuments($hqlQuery, $rcChangesNb, 0)) 136 +#set ($legacyRaw2c943fa57f_2 = $services.query.hql($hqlQuery).setLimit($rcChangesNb).setOffset(0).execute()) 137 +#set ($legacyVisible2c943fa57f_2 = []) 138 +#foreach ($legacyEntry2c943fa57f_2 in $legacyRaw2c943fa57f_2) 139 + #if ($xwiki.hasAccessLevel('view', $xcontext.user, $legacyEntry2c943fa57f_2)) 140 + #set ($legacyVisibilityDiscard = $legacyVisible2c943fa57f_2.add($legacyEntry2c943fa57f_2)) 130 130 #end 131 131 #end 143 + #set($rcDocumentNames = $legacyVisible2c943fa57f_2) 144 + #end 145 +#end 132 132 ## 133 133 ## Prepare comments handling 134 134 #set($commentsOrder = false)