From 23bf6764b3b894fad9a2a30b93102c345cebdf1b Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Thu, 13 Jul 2023 16:56:30 +0100 Subject: [PATCH] Fixed `matchElement` in product type condition rule --- src/elements/conditions/products/ProductTypeConditionRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elements/conditions/products/ProductTypeConditionRule.php b/src/elements/conditions/products/ProductTypeConditionRule.php index 3a15b5df75..7dc4008467 100644 --- a/src/elements/conditions/products/ProductTypeConditionRule.php +++ b/src/elements/conditions/products/ProductTypeConditionRule.php @@ -75,6 +75,6 @@ public function modifyQuery(ElementQueryInterface $query): void public function matchElement(ElementInterface $element): bool { /** @var Product $element */ - return $this->matchValue((string)$element->getType()); + return $this->matchValue($element->getType()->uid); } }