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

pull/222/head
Ludovic Marcotte 2016-09-27 19:49:58 -04:00
parent e4efff6bc1
commit 8ec73590d7
1 changed files with 4 additions and 0 deletions

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;