From 8ec73590d7b42ecc78c8e9493dfd1bf9b18058cd Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 27 Sep 2016 19:49:58 -0400 Subject: [PATCH] (fix) make sure new cards always have a UID (fixes #3819) --- SoObjects/Contacts/SOGoContactGCSEntry.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SoObjects/Contacts/SOGoContactGCSEntry.m b/SoObjects/Contacts/SOGoContactGCSEntry.m index 4985dbe75..8b9b5bd1b 100644 --- a/SoObjects/Contacts/SOGoContactGCSEntry.m +++ b/SoObjects/Contacts/SOGoContactGCSEntry.m @@ -184,6 +184,10 @@ { NSException *ex; + // We make sure new cards always have a UID - see #3819 + if (![[newCard uid] length]) + [newCard setUid: [self globallyUniqueObjectId]]; + ex = [super saveComponent: newCard baseVersion: newVersion]; [card release]; card = nil;