diff options
| author | vishmita <vja@vja-desktop> | 2011-10-21 17:36:45 +0530 |
|---|---|---|
| committer | vishmita <vja@vja-desktop> | 2011-10-21 17:36:45 +0530 |
| commit | 0259bb76299927f7a15566ac79a389effeeb3e20 (patch) | |
| tree | 3367ae7ae04f241bd1143317b51219130101b28a /addons/web/static/src/js/data.js | |
| parent | 8773fca3a87a3cda0c921da83845a2b2f2e2d5a1 (diff) | |
[FIX] FF issues in dataset limit.
lp bug: https://launchpad.net/bugs/876603 fixed
bzr revid: vja@vja-desktop-20111021120645-qx0en9plxihle0dj
Diffstat (limited to 'addons/web/static/src/js/data.js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 475dbe5421c..069506586ad 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -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) { |
