Skip to content

Commit 70cd1e5

Browse files
committed
Merge remote-tracking branch 'origin/MC-33523' into 2.4.1-develop-pr25
2 parents 0a17e83 + 76493a9 commit 70cd1e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/ConfigurableProduct/view/adminhtml/web/js/components/dynamic-rows-configurable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ define([
212212
);
213213

214214
tmpData = data.slice(this.pageSize * (this.currentPage() - 1),
215-
this.pageSize * (this.currentPage() - 1) + this.pageSize);
215+
this.pageSize * (this.currentPage() - 1) + parseInt(this.pageSize, 10));
216216

217217
this.source.set(this.dataScope + '.' + this.index, []);
218218

app/code/Magento/Ui/view/base/web/js/dynamic-rows/dynamic-rows.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ define([
657657

658658
startIndex = page || this.startIndex;
659659

660-
return dataRecord.slice(startIndex, this.startIndex + this.pageSize);
660+
return dataRecord.slice(startIndex, this.startIndex + parseInt(this.pageSize, 10));
661661
},
662662

663663
/**
@@ -960,6 +960,9 @@ define([
960960
reload: function () {
961961
this.clear();
962962
this.initChildren(false, true);
963+
964+
/* After change page size need to check existing current page */
965+
this._reducePages();
963966
},
964967

965968
/**

0 commit comments

Comments
 (0)