[FIX] don't break the handling of record index 0 in editable list views: index 0 means something different than index = null

bzr revid: xmo@openerp.com-20120614085009-xuo1ifu2vnlcic72
This commit is contained in:
Xavier Morel 2012-06-14 10:50:09 +02:00
parent 29584df420
commit 83eef22856
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ openerp.web.list_editable = function (openerp) {
}
self.edition = true;
self.edition_id = record_id;
self.dataset.index = _(self.dataset.ids).indexOf(record_id) || null;
self.dataset.index = _(self.dataset.ids).indexOf(record_id);
if (self.dataset.index === -1) {
self.dataset.index = null;
}