Skip to content

Commit 3afec79

Browse files
author
valdislav
committed
MAGETWO-36882: Stabilizing branch
1 parent 01ffa8a commit 3afec79

File tree

1 file changed

+9
-1
lines changed
  • app/code/Magento/Sales/Model/Resource

1 file changed

+9
-1
lines changed

app/code/Magento/Sales/Model/Resource/Order.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,15 @@ public function aggregateProductsByTypes($orderId, $productTypeIds = [], $isProd
9898
->where('o.product_id IS NOT NULL')
9999
->group('o.product_type');
100100
if ($productTypeIds) {
101-
$select->where(sprintf('(o.product_type %s (?))', $isProductTypeIn ? 'IN' : 'NOT IN'), $productTypeIds);
101+
$select->where(
102+
sprintf(
103+
'(o.product_type %s (?))',
104+
$isProductTypeIn
105+
? 'IN'
106+
: 'NOT IN'
107+
),
108+
$productTypeIds
109+
);
102110
}
103111
return $adapter->fetchPairs($select);
104112
}

0 commit comments

Comments
 (0)