mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Fix for ALF-7033/ACE-82 - My Profile / Content - Does not show content [Add Repository content to appropriate user dashlets]
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55447 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -43,8 +43,7 @@ function getContents(user, type)
|
||||
|
||||
var getDocumentsQuery = function getDocumentsQuery()
|
||||
{
|
||||
return 'PATH:"/app:company_home/st:sites/*/cm:documentLibrary//*" ' +
|
||||
'AND +TYPE:"cm:content" ' +
|
||||
return 'TYPE:"cm:content" ' +
|
||||
'AND +@cm:' + userProperty + ':"' + user + '" ' +
|
||||
'AND +@cm:' + type + ':["' + fromQuery + '" TO "' + toQuery + '"]';
|
||||
};
|
||||
|
@@ -18,13 +18,13 @@
|
||||
"modifiedByUser": "${item.modifiedByUser}",
|
||||
"modifiedBy": "${item.modifiedBy}",
|
||||
"size": ${item.size?c},
|
||||
"tags": [<#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list>],
|
||||
"site":
|
||||
<#if item.site??>"site":
|
||||
{
|
||||
"shortName": "${item.site.shortName}",
|
||||
"title": "${item.site.title}"
|
||||
},
|
||||
"container": "${item.container}"
|
||||
},</#if>
|
||||
"container": "${item.container!""}",
|
||||
"tags": [<#list item.tags as tag>"${tag}"<#if tag_has_next>,</#if></#list>]
|
||||
}<#if item_has_next>,</#if>
|
||||
</#list>
|
||||
]
|
||||
|
@@ -808,7 +808,7 @@ function getSearchResults(params)
|
||||
term = params.term,
|
||||
tag = params.tag,
|
||||
formData = params.query,
|
||||
rootNode = resolveRootNode(params.rootNode);
|
||||
rootNode = params.rootNode ? resolveRootNode(params.rootNode) : null;
|
||||
|
||||
// Simple keyword search and tag specific search
|
||||
if (term !== null && term.length !== 0)
|
||||
|
Reference in New Issue
Block a user