Skip to content

Commit

Permalink
Fixed according to Backward compatible development guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored and ronak2ram committed Jul 16, 2018
1 parent 876315e commit 3fc48e9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/code/Magento/Sales/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,24 @@ public function addStatusToHistory($status, $comment = '', $isCustomerNotified =
* @param string $comment
* @param bool|string $status
* @return OrderStatusHistoryInterface
* @deprecated
* @see addCommentToStatusHistory
*/
public function addStatusHistoryComment($comment, $status = false, $isVisibleOnFront = false)
public function addStatusHistoryComment($comment, $status = false)
{
return $this->addCommentToStatusHistory($comment, $status, false);
}

/**
* Add a comment to order status history
* Different or default status may be specified
*
* @param string $comment
* @param bool|string $status
* @param bool $isVisibleOnFront
* @return OrderStatusHistoryInterface
*/
public function addCommentToStatusHistory($comment, $status = false, $isVisibleOnFront = false)
{
if (false === $status) {
$status = $this->getStatus();
Expand Down

0 comments on commit 3fc48e9

Please sign in to comment.