Skip to content

Wrong method called for Add To Compare button #39754

@snowcore

Description

@snowcore

An incorrect method is used in \Magento\Catalog\Ui\DataProvider\Product\Listing\Collector\Url::collect().
It should be \Magento\Catalog\Api\Data\ProductRenderInterface::getAddToCompareButton() instead of \Magento\Catalog\Api\Data\ProductRenderInterface::getAddToCartButton()

https://github.com/magento/magento2/blame/9a7352b7dce3225b0313f0be150c2d4895256cec/app/code/Magento/Catalog/Ui/DataProvider/Product/Listing/Collector/Url.php#L82

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CatalogComponent: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR CreatedIndicates that Pull Request has been created to fix issueProgress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions