Skip to content

Commit 2a1abd6

Browse files
committed
ACP2E-676: [Magento Cloud] Removing cross sell products the position count is not being reset
- Modified the title and description in MFTF. - Added the comment line in UI component js file.
1 parent cb7dd9b commit 2a1abd6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminValidateRelatedUpsellCrossSellPositionValueInProductExportCsvTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<annotations>
1313
<features value="Catalog"/>
1414
<stories value="[Magento Cloud] Removing cross sell products the position count is not being reset"/>
15-
<title value="Admin to validate cross sell position value in products export csv"/>
16-
<description value="Admin to validate cross sell position value in products export csv"/>
15+
<title value="Admin to validate related, upsell and cross sell position value in products export csv"/>
16+
<description value="Admin to validate related, upsell and cross sell position value in products export csv"/>
1717
<severity value="AVERAGE"/>
1818
<testCaseId value="AC-2844"/>
1919
<useCaseId value="ACP2E-676"/>

app/code/Magento/Catalog/view/adminhtml/web/js/components/reset-dynamic-rows-grid-row-position-on-delete.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ define([
1313

1414
return dynamicRowsGrid.extend({
1515

16+
/** @inheritdoc */
1617
deleteRecord: function () {
1718
this._super();
1819
this.resetPosition();
1920
},
2021

22+
/**
23+
* Reset the position on delete of the record.
24+
*/
2125
resetPosition() {
2226
let self = this,
2327
position = 0;
@@ -35,6 +39,7 @@ define([
3539
});
3640
},
3741

42+
/** @inheritdoc */
3843
nextPage: function () {
3944
this._super();
4045
resolver(function () {

0 commit comments

Comments
 (0)