Remove obsolete values array on edit form
This commit is contained in:
parent
278a37bc53
commit
ed24ace9b6
2 changed files with 0 additions and 2 deletions
|
|
@ -216,7 +216,6 @@ class RoleController extends BaseController
|
||||||
throw $this->createNotFoundException('The item does not exist');
|
throw $this->createNotFoundException('The item does not exist');
|
||||||
|
|
||||||
$params['obj'] = $row;
|
$params['obj'] = $row;
|
||||||
$params['values'] = [];
|
|
||||||
|
|
||||||
// response
|
// response
|
||||||
return $this->render('role/form.html.twig', $params);
|
return $this->render('role/form.html.twig', $params);
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,6 @@ class UserController extends BaseController
|
||||||
$params['roles'] = $em->getRepository(Role::class)->findAll();
|
$params['roles'] = $em->getRepository(Role::class)->findAll();
|
||||||
|
|
||||||
$params['obj'] = $row;
|
$params['obj'] = $row;
|
||||||
$params['values'] = [];
|
|
||||||
|
|
||||||
// response
|
// response
|
||||||
return $this->render('user/form.html.twig', $params);
|
return $this->render('user/form.html.twig', $params);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue