We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0775715 commit fcfe0bbCopy full SHA for fcfe0bb
app/code/core/Mage/Sales/Model/Order.php
@@ -1248,15 +1248,14 @@ public function unhold()
1248
1249
/**
1250
* Cancel order
1251
- *
+ * @param string $comment
1252
* @return $this
1253
*/
1254
- public function cancel()
+ public function cancel($comment = '')
1255
{
1256
if ($this->canCancel()) {
1257
$this->getPayment()->cancel();
1258
- $this->registerCancellation();
1259
-
+ $this->registerCancellation($comment);
1260
Mage::dispatchEvent('order_cancel_after', array('order' => $this));
1261
}
1262
0 commit comments