Skip to content

Commit

Permalink
Merge pull request #96 from magento-mpi/MAGETWO-44600
Browse files Browse the repository at this point in the history
[MPI] Bug Fixes
  • Loading branch information
Kolesov, Ievgen(ikolesov) committed Nov 1, 2015
2 parents 8e3ca1f + ddd81f2 commit fc7a956
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Braintree/Model/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,8 @@ protected function processSuccessResult(
*/
public function canVoid()
{
if (($order = $this->_registry->registry('current_order'))
&& $order->getId() && $order->hasInvoices() ) {
if ((($order = $this->_registry->registry('current_order'))
&& $order->getId() && $order->hasInvoices()) || $this->_registry->registry('current_invoice')) {
return false;
}
return $this->_canVoid;
Expand Down

0 comments on commit fc7a956

Please sign in to comment.