diff --git a/UI/Contacts/UIxContactFolderActions.m b/UI/Contacts/UIxContactFolderActions.m index 0a3f7c7fc..aabcb89a9 100644 --- a/UI/Contacts/UIxContactFolderActions.m +++ b/UI/Contacts/UIxContactFolderActions.m @@ -370,6 +370,11 @@ static NSArray *photoTags = nil; // TODO: shall we add .vcf as in [SOGoContactGCSEntry copyToFolder:] uid = [card uid]; + if (![uid length]) + { + uid = [folder globallyUniqueObjectId]; + [card setUid: uid]; + } contact = [SOGoContactGCSEntry objectWithName: uid inContainer: folder]; [contact setIsNew: YES];