Get name for cancel reason. #472
This commit is contained in:
parent
0fb08002e8
commit
9052f8102c
1 changed files with 3 additions and 1 deletions
|
|
@ -1086,7 +1086,9 @@ 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() . '.', $notif_url);
|
||||
$this->nm->sendNotification(0, 'Job order #' . $jo->getID() .
|
||||
' has been cancelled by rider. Reason: ' . $jo->getCancelReason()->getName() .
|
||||
'.', $notif_url);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue