The description on the getReferenceIds function in the ProductCategoryTrait says the following:
There is no filtering by target type to avoid needlessly loading all field definitions.
Since we’re only keeping track of taxonomy term reference id’s (see the configuration form), I think it’s necessary to add a target type condition in the getReferenceIds function.
I have a case where products have both a term reference and a node reference field. If for example, a product has a reference to a node with the same id of a term used in a promotion, the promotion will apply even if the product is not referencing the given term.
Comments
Comment #2
kennethos commentedComment #3
kennethos commentedComment #5
rhovlandThis is a duplicate of https://www.drupal.org/project/commerce/issues/3037376