mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-25 03:06:25 +00:00
(fix) make sure new cards always have a UID (fixes #3819)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user