Skip to content

Commit ccf2225

Browse files
AC-1726 Solved Order gift message issue and conflicts
1 parent 2dde101 commit ccf2225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/GiftMessageGraphQl/Model/Resolver/Order/GiftMessage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public function resolve(
7676
throw new GraphQlInputException(__('"id" value should be specified'));
7777
}
7878

79-
$orderId = $this->uidEncoder->decode((string) $this->uidEncoder->encode((string) $value['id']));
79+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
80+
$orderId = (int)base64_decode($value['id']) ?: (int)$value['id'];
8081

8182
try {
8283
$orderGiftMessage = $this->orderRepository->get($orderId);

0 commit comments

Comments
 (0)