Skip to content

Commit

Permalink
Create ability to set is_visible_on_front to order status history com…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
markshust authored and ronak2ram committed Jul 16, 2018
1 parent 73ed076 commit 876315e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
* @param bool|string $status
* @return OrderStatusHistoryInterface
*/
public function addStatusHistoryComment($comment, $status = false)
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
{
if (false === $status) {
$status = $this->getStatus();
Expand All @@ -1009,6 +1009,8 @@ public function addStatusHistoryComment($comment, $status = false)
$comment
)->setEntityName(
$this->entityType
)->setIsVisibleOnFront(
$isVisibleOnFront
);
$this->addStatusHistory($history);
return $history;
Expand Down

0 comments on commit 876315e

Please sign in to comment.