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 5e8b706 commit 050aff9Copy full SHA for 050aff9
app/code/Magento/Sales/Ui/Component/Listing/Column/PaymentMethod.php
@@ -50,8 +50,13 @@ public function prepareDataSource(array & $dataSource)
50
{
51
if (isset($dataSource['data']['items'])) {
52
foreach ($dataSource['data']['items'] as & $item) {
53
- $item[$this->getData('name')] = $this->paymentHelper->getMethodInstance($item[$this->getData('name')])
54
- ->getTitle();
+ try {
+ $item[$this->getData('name')] = $this->paymentHelper
55
+ ->getMethodInstance($item[$this->getData('name')])
56
+ ->getTitle();
57
+ } catch (\UnexpectedValueException $exception) {
58
+ //Displaying payment code (with no changes) if payment method is not available in system
59
+ }
60
}
61
62
0 commit comments