Skip to content

Commit 3fc48e9

Browse files
Stanislav Idolovronak2ram
authored andcommitted
Fixed according to Backward compatible development guide
1 parent 876315e commit 3fc48e9

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
@@ -993,8 +993,24 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
993993
* @param string $comment
994994
* @param bool|string $status
995995
* @return OrderStatusHistoryInterface
996+
* @deprecated
997+
* @see addCommentToStatusHistory
996998
*/
997-
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
999+
public function addStatusHistoryComment($comment, $status = false)
1000+
{
1001+
return $this->addCommentToStatusHistory($comment, $status, false);
1002+
}
1003+
1004+
/**
1005+
* Add a comment to order status history
1006+
* Different or default status may be specified
1007+
*
1008+
* @param string $comment
1009+
* @param bool|string $status
1010+
* @param bool $isVisibleOnFront
1011+
* @return OrderStatusHistoryInterface
1012+
*/
1013+
public function addCommentToStatusHistory($comment, $status = false, $isVisibleOnFront = false)
9981014
{
9991015
if (false === $status) {
10001016
$status = $this->getStatus();

0 commit comments

Comments
 (0)