Skip to content

Commit 3c341ec

Browse files
SW-18915 - Fix customer module detail query
1 parent 1f28ce3 commit 3c341ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/Shopware/Models/Customer/Repository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ public function getOrdersQueryBuilder($customerId, $filter = null, $orderBy = nu
330330
->leftJoin('orders.orderStatus', 'orderStatus')
331331
->leftJoin('orders.paymentStatus', 'paymentStatus');
332332

333-
$expr = Shopware()->Models()->getExpressionBuilder();
334333
//filter the displayed columns with the passed filter string
335334
if (!empty($filter)) {
336335
$builder->where('orders.customerId = :customerId');
@@ -351,7 +350,8 @@ public function getOrdersQueryBuilder($customerId, $filter = null, $orderBy = nu
351350
} else {
352351
$builder->where('orders.customerId = :customerId')->setParameter('customerId', $customerId);
353352
}
354-
$builder->andWhere('orders.status NOT IN (-1, 4)');
353+
$builder->andWhere('orders.status NOT IN (:stati)');
354+
$builder->setParameter(':stati', [-1, 4], Connection::PARAM_INT_ARRAY);
355355

356356
$this->addOrderBy($builder, $orderBy);
357357

0 commit comments

Comments
 (0)