summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2015-03-19 14:15:33 +0100
committerNicolas Lempereur <nle@odoo.com>2015-03-26 17:28:02 +0100
commit2a0c018043ddcc40074bb46e63bce46f191d459d (patch)
tree954fc0001ccdccdb93f2dcb12d736f3b57456914 /addons/web/static/src/js/framework/data.js
parentf89c4cd78def1ea3f0b3ab4f44dc3308cd30a5a5 (diff)
[FIX] kanban: search more when DataSetStatic
When showing a kanban, there is differences between dataset of types: * DataSetStatic: self.view.dataset===self.dataset, their ids attributes are the entire ids list, * DataSet and DataSetSearch: self.view.dataset.ids are the already in the view ids, self.dataset.ids are the last gotten ids. Hence with DataSetStatic dataset, when self.view.dataset.ids.splice(0) is done self.dataset.ids is also emptied. And in the read_slice function, the slice is done on that (now empty) array. This fix removes the splicing of this ids array (which doesn't change a thing since the array is overwritten latter), a _.difference is used to remove eventual duplicates since in the DataSetStatic case, the same array is being concatenated to itself opw-630654 opw-617090 opw-619563
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions