Merge branch 'master-fix' of gitlab.com:jankstudio/resq into 570-adopt-branch-558
This commit is contained in:
commit
5b5e3f1e4f
1 changed files with 2 additions and 1 deletions
|
|
@ -150,6 +150,8 @@ class WarrantyController extends APIController
|
|||
{
|
||||
$this->denyAccessUnlessGranted('warranty.register.battery', null, 'No access.');
|
||||
|
||||
$serial = $req->request->get('serial');
|
||||
|
||||
// required parameters
|
||||
$params = [
|
||||
'serial',
|
||||
|
|
@ -189,7 +191,6 @@ class WarrantyController extends APIController
|
|||
return new APIResponse(false, $msg);
|
||||
}
|
||||
|
||||
$serial = $req->request->get('serial');
|
||||
$date_expire_string = $req->request->get('date_expire');
|
||||
$date_pur_string = $req->request->get('date_purchase');
|
||||
$warr_class = $req->request->get('warranty_class');
|
||||
|
|
|
|||
Loading…
Reference in a new issue