Skip to content

Commit c25038b

Browse files
markshustgelanivishal
authored andcommitted
Create ability to set is_visible_on_front to order status history comment
1 parent 113bf62 commit c25038b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
10141014
* @param bool|string $status
10151015
* @return OrderStatusHistoryInterface
10161016
*/
1017-
public function addStatusHistoryComment($comment, $status = false)
1017+
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
10181018
{
10191019
if (false === $status) {
10201020
$status = $this->getStatus();
@@ -1029,6 +1029,8 @@ public function addStatusHistoryComment($comment, $status = false)
10291029
$comment
10301030
)->setEntityName(
10311031
$this->entityType
1032+
)->setIsVisibleOnFront(
1033+
$isVisibleOnFront
10321034
);
10331035
$this->addStatusHistory($history);
10341036
return $history;

0 commit comments

Comments
 (0)