From 30b8293b6ba86d0aba94fbb0e1a41fac154a1716 Mon Sep 17 00:00:00 2001
From: "a.muntian" <a.muntian@astoundcommerce.com>
Date: Fri, 15 Dec 2017 12:20:29 +0200
Subject: [PATCH] magento/magento2#12209: Substitution payment method -
 Incorrect message - fixed message showing if payment method is not available

---
 .../Payment/view/adminhtml/templates/info/substitution.phtml  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/code/Magento/Payment/view/adminhtml/templates/info/substitution.phtml b/app/code/Magento/Payment/view/adminhtml/templates/info/substitution.phtml
index ad24b113ffd..582b8ca8a24 100644
--- a/app/code/Magento/Payment/view/adminhtml/templates/info/substitution.phtml
+++ b/app/code/Magento/Payment/view/adminhtml/templates/info/substitution.phtml
@@ -10,6 +10,8 @@
  */
 ?>
 <div>
-    <?php $block->escapeHtml($block->getMethod()->getTitle());?>
+    <?= $block->getMethod()->getTitle()
+        ? $block->escapeHtml($block->getMethod()->getTitle())
+        : $block->escapeHtml(__('Payment method')); ?>
     <?= $block->escapeHtml(__(' is not available. You still can process offline actions.')) ?>
 </div>
-- 
GitLab