Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a logic error that causes duplicate sourceKeys to be added if exp…

…andedRecordTypes returns more than 1 record type.
  • Loading branch information...
commit ab7693fb3aa55990f9736d4021ce3c04bed616f5 1 parent cf62419
lchambers authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  frameworks/datastore/system/record_array.js
View
2  frameworks/datastore/system/record_array.js
@@ -552,7 +552,7 @@ SC.RecordArray = SC.Object.extend(SC.Enumerable, SC.Array,
} else if (recordType = query.get('expandedRecordTypes')) {
sourceKeys = SC.IndexSet.create();
recordType.forEach(function(cur) {
- sourceKeys.addEach(store.storeKeysFor(recordType));
+ sourceKeys.addEach(store.storeKeysFor(cur));
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.