Separate setting of delivery status from calling cancel on JO when cancelling a JO. #617

This commit is contained in:
Korina Cordero 2021-08-23 06:42:52 +00:00
parent b433722764
commit 473ace4f23

View file

@ -1145,9 +1145,11 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
throw new NotFoundHttpException('The item does not exist');
$cancel_reason = $req->request->get('cancel_reason');
error_log($cancel_reason);
$obj->cancel($cancel_reason)
->setDeliveryStatus(DeliveryStatus::CANCELLED);
//error_log('cancel_reason ' . $cancel_reason);
$obj->setDeliveryStatus(DeliveryStatus::CANCELLED);
$obj->cancel($cancel_reason);
// the event
$event = new JOEvent();