Skip to content

Commit f2afd7f

Browse files
Stanislav Idolovgelanivishal
Stanislav Idolov
authored andcommitted
Fixed according to Backward compatible development guide
1 parent c25038b commit f2afd7f

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
@@ -1013,8 +1013,24 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
10131013
* @param string $comment
10141014
* @param bool|string $status
10151015
* @return OrderStatusHistoryInterface
1016+
* @deprecated
1017+
* @see addCommentToStatusHistory
10161018
*/
1017-
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
1019+
public function addStatusHistoryComment($comment, $status = false)
1020+
{
1021+
return $this->addCommentToStatusHistory($comment, $status, false);
1022+
}
1023+
1024+
/**
1025+
* Add a comment to order status history
1026+
* Different or default status may be specified
1027+
*
1028+
* @param string $comment
1029+
* @param bool|string $status
1030+
* @param bool $isVisibleOnFront
1031+
* @return OrderStatusHistoryInterface
1032+
*/
1033+
public function addCommentToStatusHistory($comment, $status = false, $isVisibleOnFront = false)
10181034
{
10191035
if (false === $status) {
10201036
$status = $this->getStatus();

0 commit comments

Comments
 (0)