Skip to content

Commit c318d40

Browse files
committed
MAGETWO-44600: Incorrect display of Void button for order placed within Braintree
- Fixed bug
1 parent 24abff1 commit c318d40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Braintree/Model/PaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,8 @@ protected function processSuccessResult(
916916
*/
917917
public function canVoid()
918918
{
919-
if (($order = $this->_registry->registry('current_order'))
920-
&& $order->getId() && $order->hasInvoices() ) {
919+
if ((($order = $this->_registry->registry('current_order'))
920+
&& $order->getId() && $order->hasInvoices()) || $this->_registry->registry('current_invoice')) {
921921
return false;
922922
}
923923
return $this->_canVoid;

0 commit comments

Comments
 (0)