mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user