Skip to content

Commit 594203c

Browse files
author
Stanislav Idolov
authored
Fixed according to Backward compatible development guide
1 parent 8aea8ca commit 594203c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,8 +1008,24 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
10081008
* @param string $comment
10091009
* @param bool|string $status
10101010
* @return OrderStatusHistoryInterface
1011+
* @deprecated
1012+
* @see addCommentToStatusHistory
10111013
*/
1012-
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
1014+
public function addStatusHistoryComment($comment, $status = false)
1015+
{
1016+
return $this->addCommentToStatusHistory($comment, $status, false);
1017+
}
1018+
1019+
/**
1020+
* Add a comment to order status history
1021+
* Different or default status may be specified
1022+
*
1023+
* @param string $comment
1024+
* @param bool|string $status
1025+
* @param bool $isVisibleOnFront
1026+
* @return OrderStatusHistoryInterface
1027+
*/
1028+
public function addCommentToStatusHistory($comment, $status = false, $isVisibleOnFront = false)
10131029
{
10141030
if (false === $status) {
10151031
$status = $this->getStatus();

0 commit comments

Comments
 (0)