(fix) make sure new cards always have a UID (fixes #3819)

This commit is contained in:
Ludovic Marcotte
2016-09-27 19:49:58 -04:00
parent e4efff6bc1
commit 8ec73590d7

View File

@@ -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;