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:
Kevin Roast
2013-09-18 11:19:40 +00:00
parent ec5081ef10
commit d747320512
3 changed files with 6 additions and 7 deletions

View File

@@ -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 + '"]';
};

View File

@@ -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>
]

View File

@@ -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)