Fix parameter issue for getJobOrderInfo. #686
This commit is contained in:
parent
ee44dfb44e
commit
3910db88f0
1 changed files with 2 additions and 2 deletions
|
|
@ -573,7 +573,7 @@ class JobOrderController extends APIController
|
||||||
}
|
}
|
||||||
|
|
||||||
// we can't use param converter for now because we want to output the proper 404
|
// we can't use param converter for now because we want to output the proper 404
|
||||||
public function getJobOrderInfo($id, Request $req, EntityManagerInterface $em, RiderTracker $rt)
|
public function getJobOrderInfo($jo_id, Request $req, EntityManagerInterface $em, RiderTracker $rt)
|
||||||
{
|
{
|
||||||
$this->denyAccessUnlessGranted('tapi_jo.get.info', null, 'No access.');
|
$this->denyAccessUnlessGranted('tapi_jo.get.info', null, 'No access.');
|
||||||
|
|
||||||
|
|
@ -584,7 +584,7 @@ class JobOrderController extends APIController
|
||||||
return new APIResponse(false, $msg);
|
return new APIResponse(false, $msg);
|
||||||
|
|
||||||
// get job order data
|
// get job order data
|
||||||
$jo = $em->getRepository(JobOrder::class)->find($id);
|
$jo = $em->getRepository(JobOrder::class)->find($jo_id);
|
||||||
if ($jo == null)
|
if ($jo == null)
|
||||||
{
|
{
|
||||||
$message = 'No job order information found';
|
$message = 'No job order information found';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue