SHA-1860 : Incorrect tooltip when hovering over the icon of a link in Document Library

- Set title and description properties when create link for a node in order to build tooltip corectly

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132743 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ramona Neamtu
2016-11-14 14:57:05 +00:00
parent b4f68c0630
commit 13fc175c56

View File

@@ -161,6 +161,8 @@ public class DocumentLinkServiceImpl implements DocumentLinkService, NodeService
Map<QName, Serializable> props = new HashMap<QName, Serializable>();
props.put(ContentModel.PROP_NAME, newName);
props.put(ContentModel.PROP_LINK_DESTINATION, source);
props.put(ContentModel.PROP_TITLE, newName);
props.put(ContentModel.PROP_DESCRIPTION, newName);
QName assocQName = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, QName.createValidLocalName(newName));
@@ -188,6 +190,7 @@ public class DocumentLinkServiceImpl implements DocumentLinkService, NodeService
&& dictionaryService.isSubClass(nodeService.getType(source), ContentModel.TYPE_FOLDER))
{
// create Folder link node
props.put(ApplicationModel.PROP_ICON, "space-icon-link");
childRef = nodeService.createNode(destination, ContentModel.ASSOC_CONTAINS, assocQName, ApplicationModel.TYPE_FOLDERLINK, props);
}
else