Skip to content

Commit

Permalink
Merge pull request #8205 from spryker/bugfix/supesc-352-search-order-…
Browse files Browse the repository at this point in the history
…does-not-work

SUPESC-352 Search orders does not work in \Spryker\Client\Sales\SalesClient under certain circumstances
  • Loading branch information
spryker-release-bot authored May 20, 2021
2 parents b7a32ed + b26100f commit 6abca59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ protected function getAggregatedItemStateMap(array $itemTransfers): array
*/
protected function getOrderItems(array $orderTransfers): array
{
if (!$orderTransfers) {
return [];
}

$itemTransfers = $this->extractItemTransfersFromOrderTransfers($orderTransfers);
if ($itemTransfers) {
return $itemTransfers;
Expand Down
4 changes: 4 additions & 0 deletions src/Spryker/Zed/Oms/Business/Expander/OrderExpander.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ protected function mapOrdersByIdSalesOrder(array $orderTransfers): array
*/
protected function getMappedOrderItemsBySalesOrderIds(array $salesOrderIds): array
{
if (!$salesOrderIds) {
return [];
}

$mappedItemTransfers = [];
$orderItemFilterTransfer = (new OrderItemFilterTransfer())->setSalesOrderIds($salesOrderIds);

Expand Down

0 comments on commit 6abca59

Please sign in to comment.