Skip to content

Commit a161041

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'mainline/develop' into MAGETWO_44697-Remove-half-translated-files
2 parents 9736c70 + fc7a956 commit a161041

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)