Skip to content

Commit fc7a956

Browse files
author
Kolesov, Ievgen(ikolesov)
committed
Merge pull request #96 from magento-mpi/MAGETWO-44600
[MPI] Bug Fixes
2 parents 8e3ca1f + ddd81f2 commit fc7a956

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
@@ -918,8 +918,8 @@ protected function processSuccessResult(
918918
*/
919919
public function canVoid()
920920
{
921-
if (($order = $this->_registry->registry('current_order'))
922-
&& $order->getId() && $order->hasInvoices() ) {
921+
if ((($order = $this->_registry->registry('current_order'))
922+
&& $order->getId() && $order->hasInvoices()) || $this->_registry->registry('current_invoice')) {
923923
return false;
924924
}
925925
return $this->_canVoid;

0 commit comments

Comments
 (0)