- 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

@@ -518,8 +518,14 @@ public class FileFolderServiceImpl implements FileFolderService
qname,
true);
}
// changed the name property
nodeService.setProperty(targetNodeRef, ContentModel.PROP_NAME, newName);
// 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
nodeService.setProperty(targetNodeRef, ContentModel.PROP_NAME, newName);
}
// get the details after the operation
FileInfo afterFileInfo = toFileInfo(targetNodeRef);