Fix editRoute parameters for CMB. #357
This commit is contained in:
parent
3d40bc6238
commit
a0f7ca6abe
3 changed files with 7 additions and 1 deletions
|
|
@ -2997,7 +2997,7 @@ class CMBJobOrderHandler implements JobOrderHandlerInterface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getEditRoute($jo_id)
|
public function getEditRoute($jo_id, $tier = null)
|
||||||
{
|
{
|
||||||
$jo = $this->em->getRepository(JobOrder::class)->find($jo_id);
|
$jo = $this->em->getRepository(JobOrder::class)->find($jo_id);
|
||||||
if (empty($jo))
|
if (empty($jo))
|
||||||
|
|
|
||||||
|
|
@ -314,6 +314,9 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: check status before saving since JO might already
|
||||||
|
// have a status that needs to be retained
|
||||||
|
|
||||||
if (empty($error_array)) {
|
if (empty($error_array)) {
|
||||||
// get current user
|
// get current user
|
||||||
$user = $this->security->getUser();
|
$user = $this->security->getUser();
|
||||||
|
|
|
||||||
|
|
@ -98,4 +98,7 @@ interface JobOrderHandlerInterface
|
||||||
|
|
||||||
// check if service type is new battery
|
// check if service type is new battery
|
||||||
public function checkIfNewBattery(JobOrder $jo);
|
public function checkIfNewBattery(JobOrder $jo);
|
||||||
|
|
||||||
|
// return the edit route, based on tier and form
|
||||||
|
public function getEditRoute(int $jo_id, $tier);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue