Skip to content

Wrong method called for Add To Compare button #39754

Open
@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

    Reported on 2.4.xIndicates original Magento version for the Issue report.Triage: 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