Skip to content

Commit

Permalink
Merge pull request #43 from wimvds/hotfix/admin-bundle
Browse files Browse the repository at this point in the history
fix kunstmaan_admin parameters
  • Loading branch information
Wim Vandersmissen committed Oct 31, 2014
2 parents 9e3fffc + 06f08cb commit b92da5c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function addAction(Request $request)
$user = $this->getUserClassInstance();
$formTypeClassName = $user->getFormTypeClass();
$formType = new $formTypeClassName();
$formType->setLangs($this->container->getParameter('kuma_admin.admin_locales'));
$formType->setLangs($this->container->getParameter('kunstmaan_admin.admin_locales'));

if ($formType instanceof RoleDependentUserFormInterface) {
// to edit groups and enabled the current user should have ROLE_SUPER_ADMIN
Expand Down Expand Up @@ -155,7 +155,7 @@ public function editAction(Request $request, $id)
$user = $em->getRepository($this->container->getParameter('fos_user.model.user.class'))->find($id);
$formTypeClassName = $user->getFormTypeClass();
$formType = new $formTypeClassName();
$formType->setLangs($this->container->getParameter('kuma_admin.admin_locales'));
$formType->setLangs($this->container->getParameter('kunstmaan_admin.admin_locales'));

if ($formType instanceof RoleDependentUserFormInterface) {
// to edit groups and enabled the current user should have ROLE_SUPER_ADMIN
Expand Down

0 comments on commit b92da5c

Please sign in to comment.