Skip to content

Commit 876315e

Browse files
markshustronak2ram
authored andcommitted
Create ability to set is_visible_on_front to order status history comment
1 parent 73ed076 commit 876315e

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
@@ -994,7 +994,7 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
994994
* @param bool|string $status
995995
* @return OrderStatusHistoryInterface
996996
*/
997-
public function addStatusHistoryComment($comment, $status = false)
997+
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
998998
{
999999
if (false === $status) {
10001000
$status = $this->getStatus();
@@ -1009,6 +1009,8 @@ public function addStatusHistoryComment($comment, $status = false)
10091009
$comment
10101010
)->setEntityName(
10111011
$this->entityType
1012+
)->setIsVisibleOnFront(
1013+
$isVisibleOnFront
10121014
);
10131015
$this->addStatusHistory($history);
10141016
return $history;

0 commit comments

Comments
 (0)