Add numChildren as known primary field to isPrimaryField() so item data isn't loaded for all items unnecessarily
This commit is contained in:
parent
7385ba4df2
commit
6fce0ef2a6
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ Scholar.Item.prototype.isPrimaryField = function(field){
|
|||
if (!Scholar.Item.primaryFields){
|
||||
Scholar.Item.primaryFields = Scholar.DB.getColumnHash('items');
|
||||
Scholar.Item.primaryFields['firstCreator'] = true;
|
||||
Scholar.Item.primaryFields['numChildren'] = true;
|
||||
Scholar.Item.primaryFields['numNotes'] = true;
|
||||
Scholar.Item.primaryFields['numAttachments'] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue