Fix display issue of cancel reason. #472
This commit is contained in:
parent
9052f8102c
commit
92a7380b4f
1 changed files with 2 additions and 3 deletions
|
|
@ -1086,9 +1086,8 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
|
||||
// notification
|
||||
$notif_url = $this->router->generate('jo_onestep_edit_form', ['id' => $jo->getID()]);
|
||||
$this->nm->sendNotification(0, 'Job order #' . $jo->getID() .
|
||||
' has been cancelled by rider. Reason: ' . $jo->getCancelReason()->getName() .
|
||||
'.', $notif_url);
|
||||
$cancel_reason = CMBCancelReason::getName($jo->getCancelReason());
|
||||
$this->nm->sendNotification(0, 'Job order #' . $jo->getID() . ' has been cancelled by rider. Reason: ' . $cancel_reason . '.', $notif_url);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue