-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Area: ProductComponent: GroupedProductIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: ready for devReported on 2.3.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions
Magento version 2.1.7
Updated(09/19/2019): Still actual on 2.3-develop
Steps to reproduce
- Create a Grouped Product
- Add child / associated Simple Products to the Grouped Product
- Save the Grouped Product
- Duplicate the Grouped Product
Expected Result
The duplicate of the Grouped Product has the same associated Simple Products as the earlier created Grouped Product.
Actual Result
The duplicate of the Grouped Product has no associated Simple Product.
Investigation
On duplication the Magento\GroupedProduct\Model\Product\Type\Grouped::beforeSave
function is called. In this function the cache for the associated products is being cleaned:
$product->unsetData($this->_keyAssociatedProducts); |
After removing this line of code, the duplication of Grouped Products works as expected.
Metadata
Metadata
Assignees
Labels
Area: ProductComponent: GroupedProductIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: ready for devReported on 2.3.xIndicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch