"Product variation: Contextual filters" causes a crash in ProductVariationListBuilder

Created on 3 March 2023, over 1 year ago

I created a view for product variations with contextual filters and got an error saying that $this->product is not type of EntityInterface. This is because only the variation ID is given.
In #3029969: "Product variation: Operations links" causes a crash in ProductVariationListBuilder the last comment of Chi ( #14 ) says it all:

This doesn't solve the problem when a view has contextual filter. Because in that case the value of $this->product would be just a product ID not a fully loaded Product entity. I think it should check if the product is instance of ProductInterface. [...]

The MR is doing exactly this.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Product

Created by

🇩🇪Germany juliaschwarz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024