From 2b07a89544f1ab01541f8e4060a4d43e85f4e047 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Wed, 16 Sep 2020 08:07:10 +0000 Subject: [PATCH] Make explicit setting of active JO to null. #496 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index 464b41aa..b39c5493 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -1077,7 +1077,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface // add event log $rider = $this->session->getRider(); - $rider->setActiveJobOrder(); + $rider->setActiveJobOrder(null); $event = new JOEvent(); $event->setDateHappen(new DateTime()) @@ -1160,7 +1160,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface $this->em->persist($event); // set rider's active JO to null - $rider->setActiveJobOrder(); + $rider->setActiveJobOrder(null); $this->em->flush();