Closed
Description
Undefined variable $type in Product-Link Management
Preconditions (*)
- Magento Community Version 2.3.2 and current branch 2.4-develop
Steps to reproduce (*)
- Create two products, for example with SKU 1234 and SKU 5678
- Create a product link 1234 to 5678 with Magento\Catalog\Model\ProductLink\Management->setProductLinks
- Create a product link 5678 to 1234 with Magento\Catalog\Model\ProductLink\Management->setProductLinks
Expected result (*)
- New product link 1234 to 5678
- New product link 5678 to 1234
Actual result (*)
- New product link 1234 to 5678
- Exception: Notice: Undefined variable: type in /.../vendor/magento/module-catalog/Model/ProductLink/Management.php on line 94
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch