Get name for cancel reason. #472

This commit is contained in:
Korina Cordero 2020-09-07 03:00:22 +00:00
parent 0fb08002e8
commit 9052f8102c

View file

@ -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;
}