Separate setting of delivery status from calling cancel on JO when cancelling a JO. #617
This commit is contained in:
parent
b433722764
commit
473ace4f23
1 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue