Skip to content

Commit

Permalink
Merge pull request #22 from degica/fix-cancel-in-admin
Browse files Browse the repository at this point in the history
Fix error when cancelling order in admin page
  • Loading branch information
Dinwy authored Jan 8, 2025
2 parents e451587 + 90fca5b commit a33429b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/code/Komoju/Payments/Observer/RestoreAfterCancel.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ public function execute(Observer $observer)

if (!$lastRealQuoteId) {
$quote = $observer->getEvent()->getQuote();
$quote->setIsActive(true);
if ($quote) {
$quote->setIsActive(true);
}
return;
}

Expand Down

0 comments on commit a33429b

Please sign in to comment.