From 671bb08fd8135560338a0daca6f421f600db4c50 Mon Sep 17 00:00:00 2001 From: Sam Stigler Date: Mon, 18 May 2015 20:16:14 -0500 Subject: [PATCH] Updates method to not use attribute key if additional key paths exist. --- Source/MMRecord/MMRecordRepresentation.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/MMRecord/MMRecordRepresentation.m b/Source/MMRecord/MMRecordRepresentation.m index feb0dd0..cc40a89 100644 --- a/Source/MMRecord/MMRecordRepresentation.m +++ b/Source/MMRecord/MMRecordRepresentation.m @@ -356,8 +356,9 @@ - (void)setupAttributeKey:(NSString *)attributeKey if (additionalKeyPaths) { [keyPaths addObjectsFromArray:additionalKeyPaths]; } - - [keyPaths addObject:attributeKey]; + else { + [keyPaths addObject:attributeKey]; + } MMRecordAttributeRepresentation *representation = [[MMRecordAttributeRepresentation alloc] init]; representation.attributeDescription = attributeDescription;