[FIX] web : FormView wrong records count in pager
Using breadcrumb to open and close form view, the page counter increase each time with the number of record in the list view or kanban view
This commit is contained in:
@@ -250,7 +250,7 @@ var KanbanView = View.extend({
|
||||
def = dataset.read_slice(self.fields_keys.concat(['__last_update']), { 'limit': self.limit });
|
||||
}
|
||||
return def.then(function (records) {
|
||||
self.dataset.ids.push.apply(self.dataset.ids, dataset.ids);
|
||||
self.dataset.ids.push.apply(self.dataset.ids, _.difference(dataset.ids, self.dataset.ids));
|
||||
group.records = records;
|
||||
group.dataset = dataset;
|
||||
is_empty = is_empty && !records.length;
|
||||
|
||||
Reference in New Issue
Block a user