Add numChildren as known primary field to isPrimaryField() so item data isn't loaded for all items unnecessarily

This commit is contained in:
Dan Stillman 2006-08-27 08:05:56 +00:00
parent 7385ba4df2
commit 6fce0ef2a6

View file

@ -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;
}