Skip to content

Undefined variable $type in Product-Link Management #26800

Closed
@angelobono

Description

@angelobono

Undefined variable $type in Product-Link Management

Preconditions (*)

  1. Magento Community Version 2.3.2 and current branch 2.4-develop

Steps to reproduce (*)

  1. Create two products, for example with SKU 1234 and SKU 5678
  2. Create a product link 1234 to 5678 with Magento\Catalog\Model\ProductLink\Management->setProductLinks
  3. Create a product link 5678 to 1234 with Magento\Catalog\Model\ProductLink\Management->setProductLinks

Expected result (*)

  1. New product link 1234 to 5678
  2. New product link 5678 to 1234

Actual result (*)

  1. New product link 1234 to 5678
  2. Exception: Notice: Undefined variable: type in /.../vendor/magento/module-catalog/Model/ProductLink/Management.php on line 94

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.2Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions