Fix activateWarranty. #591
This commit is contained in:
parent
e162de9021
commit
f067a6ddad
1 changed files with 4 additions and 2 deletions
|
|
@ -287,7 +287,7 @@ class WarrantyController extends APIController
|
|||
return new APIResponse(true, 'Warranty checked', $data);
|
||||
}
|
||||
|
||||
public function activateWarranty(Request $req, EntityManagerInterface $em)
|
||||
public function activateWarranty(Request $req, EntityManagerInterface $em, MobileAPIHandler $mah)
|
||||
{
|
||||
$this->denyAccessUnlessGranted('mobile_warranty.activate', null, 'No access.');
|
||||
|
||||
|
|
@ -323,7 +323,9 @@ class WarrantyController extends APIController
|
|||
|
||||
$em->flush();
|
||||
|
||||
return new APIResponse(true, 'Warranty activated');
|
||||
$data = $this->generateWarrantyData($warranty);
|
||||
|
||||
return new APIResponse(true, 'Warranty activated', $data);
|
||||
}
|
||||
|
||||
protected function handlePictureUpload($file, $target_dir, $serial, $name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue