Skip to content

Commit 9a3a557

Browse files
committed
MAGETWO-90104: Credit Card form is no longer displayed when creating an order in the admin(enabled Braintree only)
1 parent 1fcce2c commit 9a3a557

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/billing/method/form.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
type="radio" name="payment[method]"
2626
title="<?= $block->escapeHtml($_method->getTitle()); ?>"
2727
onclick="payment.switchMethod('<?= $block->escapeHtml($_code); ?>')"
28-
<?php if ($block->getSelectedMethodCode() == $_code) : ?>
28+
<?php if ($currentSelectedMethod == $_code) : ?>
2929
checked="checked"
3030
<?php endif; ?>
3131
<?php $className = ($_counter == $_methodsCount) ? ' validate-one-required-by-name' : ''; ?>
@@ -56,7 +56,7 @@
5656
'Magento_Sales/order/create/form'
5757
], function(mage) {
5858
mage.apply();
59-
<?php if ($_methodsCount != 1) : ?>
59+
<?php if ($_methodsCount !== 1) : ?>
6060
order.setPaymentMethod('<?= $block->escapeHtml($currentSelectedMethod); ?>');
6161
<?php else : ?>
6262
payment.switchMethod('<?= $block->escapeHtml($currentSelectedMethod); ?>');

0 commit comments

Comments
 (0)