Skip to content

Commit

Permalink
MHC-491: fix PostNL order data save, when ac_information exist in req…
Browse files Browse the repository at this point in the history
…uest params
  • Loading branch information
kis28viktor committed Apr 3, 2024
1 parent 31d2835 commit 913518d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Service/DeliveryOptions/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ private function saveDeliveryOption(PostnlRequestInterface $postnlRequest): bool
private function savePostNLOrderData(array $params, PostnlOrder $postnlOrder): void
{
foreach ($params as $key => $value) {
// setting ac_information via direct method, because it is serializing the value for case when it's array
if ($key == 'ac_information') {
$postnlOrder->setAcInformation($value);
continue;
}
$postnlOrder->setData($key, $value);
}

Expand Down

0 comments on commit 913518d

Please sign in to comment.