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');
|
throw new NotFoundHttpException('The item does not exist');
|
||||||
|
|
||||||
$cancel_reason = $req->request->get('cancel_reason');
|
$cancel_reason = $req->request->get('cancel_reason');
|
||||||
error_log($cancel_reason);
|
//error_log('cancel_reason ' . $cancel_reason);
|
||||||
$obj->cancel($cancel_reason)
|
|
||||||
->setDeliveryStatus(DeliveryStatus::CANCELLED);
|
$obj->setDeliveryStatus(DeliveryStatus::CANCELLED);
|
||||||
|
|
||||||
|
$obj->cancel($cancel_reason);
|
||||||
|
|
||||||
// the event
|
// the event
|
||||||
$event = new JOEvent();
|
$event = new JOEvent();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue