[FIX] FF issues in dataset limit.

lp bug: https://launchpad.net/bugs/876603 fixed

bzr revid: vja@vja-desktop-20111021120645-qx0en9plxihle0dj
This commit is contained in:
vishmita
2011-10-21 17:36:45 +05:30
parent 8773fca3a8
commit 0259bb7629
+1 -1
View File
@@ -493,7 +493,7 @@ openerp.web.DataSetStatic = openerp.web.DataSet.extend({
offset = options.offset || 0,
limit = options.limit || false,
fields = fields || false;
var end_pos = limit && limit !== -1 ? offset + limit : undefined;
var end_pos = limit && limit !== -1 ? offset + limit : this.ids.length;
return this.read_ids(this.ids.slice(offset, end_pos), fields, callback);
},
set_ids: function (ids) {