Use the same read limit for children

This commit is contained in:
Cédric Krier committed 2014-05-04 00:20:11 +02:00
1 parent cf2343a9e0
commit 577da80350
1 file changed
+1 -5
+1 -5
View File
@@ -443,11 +443,7 @@
var context = jQuery.extend({}, this.get_context());
if (loading == 'eager') {
var limit = Sao.config.limit;
if (!this.group.parent) {
// If not a children no need to load too much
limit = parseInt(limit / fnames_to_fetch.length, 10);
}
var limit = parseInt(limit / fnames_to_fetch.length, 10);
var filter_group = function(record) {
return !(name in record._loaded) && (record.id >= 0);