From 9052f8102c9a059d76d92df3d99884a26e231c38 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 7 Sep 2020 03:00:22 +0000 Subject: [PATCH] Get name for cancel reason. #472 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index ff333bb6..05f9fbd7 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -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; }