- Fixed bug when moving a locked node in the UI

- Added 'run action' to menu for linked content and folders

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-05-23 10:42:09 +00:00
parent 3be88fc053
commit f661cafaa3
2 changed files with 10 additions and 4 deletions

View File

@@ -2,5 +2,5 @@
lock_service.insufficent_privileges=You have insufficent privileges to release the lock on the node (id: {0}). The node is locked by another user. lock_service.insufficent_privileges=You have insufficent privileges to release the lock on the node (id: {0}). The node is locked by another user.
lock_service.node_locked=The node (id: {0}) could not be locked since it is already locked by another user. lock_service.node_locked=The node (id: {0}) could not be locked since it is already locked by another user.
lock_service.no_op=Can not perform operation since the node (id:{0}) is locked by another user. lock_service.no_op=Can not perform operation since the node (id:{0}) is locked.
lock_service.no_op2=Can not perform operation {0} since the node (id:{1}) is locked by another user. lock_service.no_op2=Can not perform operation {0} since the node (id:{1}) is locked.

View File

@@ -518,8 +518,14 @@ public class FileFolderServiceImpl implements FileFolderService
qname, qname,
true); true);
} }
// Only update the name if it has changed
String currentName = (String)nodeService.getProperty(targetNodeRef, ContentModel.PROP_NAME);
if (currentName.equals(newName) == false)
{
// changed the name property // changed the name property
nodeService.setProperty(targetNodeRef, ContentModel.PROP_NAME, newName); nodeService.setProperty(targetNodeRef, ContentModel.PROP_NAME, newName);
}
// get the details after the operation // get the details after the operation
FileInfo afterFileInfo = toFileInfo(targetNodeRef); FileInfo afterFileInfo = toFileInfo(targetNodeRef);