Skip to content

Commit

Permalink
EMA-150
Browse files Browse the repository at this point in the history
  • Loading branch information
tperencz committed Jun 11, 2024
1 parent f5f5326 commit 02f8347
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Model/Api/OrdersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Emartech\Emarsys\Api\Data\OrdersApiResponseInterfaceFactory;
use Emartech\Emarsys\Api\OrdersApiInterface;
use Magento\Framework\Webapi\Exception as WebApiException;
use Magento\Sales\Model\Order;
use Magento\Sales\Model\ResourceModel\Order\Collection as OrderCollection;
use Magento\Sales\Model\ResourceModel\Order\CollectionFactory as OrderCollectionFactory;

Expand Down Expand Up @@ -144,7 +145,9 @@ private function handleItems(): array
{
$returnArray = [];

/** @var Order $order */
foreach ($this->orderCollection as $order) {
$order->setStoreName(str_replace(PHP_EOL, ' ', $order->getStoreName()));
$returnArray[] = $order;
}

Expand Down

0 comments on commit 02f8347

Please sign in to comment.