Skip to content

Commit c7e2deb

Browse files
author
Gabriel Galvao da Gama
committed
Applied bug fix on getOrderId
1 parent 4e9be8b commit c7e2deb

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/LoginAsCustomerAdminUi/Ui/Customer/Component/ConfirmationPopup

1 file changed

+3
-3
lines changed

app/code/Magento/LoginAsCustomerAdminUi/Ui/Customer/Component/ConfirmationPopup/Options.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,11 @@ private function getOrderId(): int
248248
$creditmemoId = $this->request->getParam('creditmemo_id');
249249
$invoiceId = $this->request->getParam('invoice_id');
250250
if ($invoiceId) {
251-
return $this->invoiceRepository->get($invoiceId)->getOrderId();
251+
return (int)$this->invoiceRepository->get($invoiceId)->getOrderId();
252252
} elseif ($shipmentId) {
253-
return $this->shipmentRepository->get($shipmentId)->getOrderId();
253+
return (int)$this->shipmentRepository->get($shipmentId)->getOrderId();
254254
} elseif ($creditmemoId) {
255-
return $this->creditmemoRepository->get($creditmemoId)->getOrderId();
255+
return (int)$this->creditmemoRepository->get($creditmemoId)->getOrderId();
256256
}
257257
throw new LocalizedException(__('Unable to get Order ID.'));
258258
}

0 commit comments

Comments
 (0)