Fixed count missing parameter suffix

[MAILPOET-3953]
This commit is contained in:
Oluwaseun Olorunsola
2021-12-09 14:50:33 +01:00
committed by Veljko V
parent 831772506b
commit 02fc0df655

View File

@@ -59,8 +59,8 @@ class WooCommerceCategory implements Filter {
$this->applyTermRelationshipsJoin($queryBuilder);
$this->applyTermTaxonomyJoin($queryBuilder, $parameterSuffix)
->groupBy("{$subscribersTable}.id, items.order_id")
->having('COUNT(items.order_id) = :count')
->setParameter('count', count($categoryIds));
->having('COUNT(items.order_id) = :count_' . $parameterSuffix)
->setParameter('count_' . $parameterSuffix, count($categoryIds));
} elseif ($operator === DynamicSegmentFilterData::OPERATOR_NONE) {
$this->applyPostmetaJoin($queryBuilder, $subscribersTable);