(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 84e170a601
commit 156a83046b
+4
View File
@@ -187,6 +187,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;