Skip to content

Commit 5dde9ea

Browse files
author
Olexandr Lysenko
committed
MAGETWO-30913: Error when trying to apply coupon code in backend reorder after unchecking the discount apply checkbox
1 parent 13ac39f commit 5dde9ea

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Sales/Controller/Adminhtml/Order

1 file changed

+1
-2
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/Create.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,10 @@ protected function _processActionData($action = null)
291291
}
292292
}
293293
if (!$isApplyDiscount) {
294-
$rr = $this->escaper->escapeHtml($couponCode);
295294
$this->messageManager->addError(
296295
__(
297296
'"%1" coupon code was not applied. Do not apply discount is selected for item(s)',
298-
$rr
297+
$this->escaper->escapeHtml($couponCode)
299298
)
300299
);
301300
} else {

0 commit comments

Comments
 (0)