Skip to content

Commit ffda2eb

Browse files
author
David Freiman
committed
Specify default parameters in order to make the setState() call backwards compatible
1 parent 4c7ff8f commit ffda2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ public function registerCancellation($comment = '', $graceful = true)
11591159
$this->setTotalCanceled($this->getGrandTotal() - $this->getTotalPaid());
11601160
$this->setBaseTotalCanceled($this->getBaseGrandTotal() - $this->getBaseTotalPaid());
11611161

1162-
$this->setState($cancelState, true, $comment);
1162+
$this->setState($cancelState, true, $comment, null, false);
11631163
} elseif (!$graceful) {
11641164
throw new \Magento\Framework\Exception\LocalizedException(__('We cannot cancel this order.'));
11651165
}

0 commit comments

Comments
 (0)