Skip to content

Commit 64b55e6

Browse files
committed
MAGETWO-44562: Add products: 'Select All on This Page' is not displayed, 'Select All' selects only products on the current page
1 parent a9daa69 commit 64b55e6

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/grid/columns

1 file changed

+3
-2
lines changed

app/code/Magento/Ui/view/base/web/js/grid/columns/onoff.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ define([
4444
key,
4545
i;
4646

47+
registry.set('position_cache_valid', true);
48+
4749
if (this.selectedData.length === 0 || positionCacheValid) {
4850
return;
4951
}
50-
registry.set('position_cache_valid', true);
5152
// Check selected data
5253
for (key in this.selectedData) {
5354
if (this.selectedData.hasOwnProperty(key) && this.selected().indexOf(key) === -1) {
@@ -58,7 +59,7 @@ define([
5859
for (i = 0; i < this.selected().length; i++) {
5960
key = this.selected()[i];
6061
this.selectedData.hasOwnProperty(key) || this.selected.splice(this.selected().indexOf(key), 1);
61-
this.selectedData.hasOwnProperty(key) || (i--);
62+
this.selectedData.hasOwnProperty(key) || i--;
6263
}
6364
},
6465

0 commit comments

Comments
 (0)