We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dde101 commit ccf2225Copy full SHA for ccf2225
app/code/Magento/GiftMessageGraphQl/Model/Resolver/Order/GiftMessage.php
@@ -76,7 +76,8 @@ public function resolve(
76
throw new GraphQlInputException(__('"id" value should be specified'));
77
}
78
79
- $orderId = $this->uidEncoder->decode((string) $this->uidEncoder->encode((string) $value['id']));
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
80
+ $orderId = (int)base64_decode($value['id']) ?: (int)$value['id'];
81
82
try {
83
$orderGiftMessage = $this->orderRepository->get($orderId);
0 commit comments