mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-28 00:20:32 +00:00
(fix) make sure new cards always have a UID (fixes #3819)
This commit is contained in:
@@ -184,6 +184,10 @@
|
|||||||
{
|
{
|
||||||
NSException *ex;
|
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];
|
ex = [super saveComponent: newCard baseVersion: newVersion];
|
||||||
[card release];
|
[card release];
|
||||||
card = nil;
|
card = nil;
|
||||||
|
|||||||
Reference in New Issue
Block a user