Add query parameter for the return urls when unlocking and editing/dispatching a JO. #679
This commit is contained in:
parent
86ab8edb74
commit
feade62c18
1 changed files with 7 additions and 3 deletions
|
|
@ -15,6 +15,8 @@ use Catalyst\MenuBundle\Annotation\Menu;
|
||||||
|
|
||||||
use App\Entity\JobOrder;
|
use App\Entity\JobOrder;
|
||||||
|
|
||||||
|
use App\Service\JobOrderHandlerInterface;
|
||||||
|
|
||||||
use App\Ramcar\TransactionOrigin;
|
use App\Ramcar\TransactionOrigin;
|
||||||
use App\Ramcar\JOStatus;
|
use App\Ramcar\JOStatus;
|
||||||
use App\Ramcar\ServiceType;
|
use App\Ramcar\ServiceType;
|
||||||
|
|
@ -37,7 +39,7 @@ class ResqJobOrderController extends Controller
|
||||||
/**
|
/**
|
||||||
* @IsGranted("jo_resq_proc.list")
|
* @IsGranted("jo_resq_proc.list")
|
||||||
*/
|
*/
|
||||||
public function datatableRows(Request $req)
|
public function datatableRows(Request $req, JobOrderHandlerInterface $jo_handler)
|
||||||
{
|
{
|
||||||
// get query builder
|
// get query builder
|
||||||
$qb = $this->getDoctrine()
|
$qb = $this->getDoctrine()
|
||||||
|
|
@ -131,8 +133,10 @@ class ResqJobOrderController extends Controller
|
||||||
$row['processor'] = $orow->getProcessedBy()->getFullName();
|
$row['processor'] = $orow->getProcessedBy()->getFullName();
|
||||||
|
|
||||||
// add the items for Actions
|
// add the items for Actions
|
||||||
$row['meta']['update_url'] = $this->generateUrl('jo_proc_form', ['id' => $orow->getID()]);
|
$jo_id = $orow->getID();
|
||||||
$row['meta']['unlock_url'] = $this->generateUrl('jo_resq_proc_unlock', ['id' => $orow->getID()]);
|
|
||||||
|
$row['meta']['update_url'] = $this->generateUrl('jo_proc_form', ['id' => $jo_id, 'origin' => 'resq']);
|
||||||
|
$row['meta']['unlock_url'] = $this->generateUrl('jo_resq_proc_unlock', ['id' => $jo_id, 'origin' => 'resq']);
|
||||||
|
|
||||||
$rows[] = $row;
|
$rows[] = $row;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue