Skip to content

Commit

Permalink
[ConfigBundle] Fixed variable name, in routing and view, for ConfigCo…
Browse files Browse the repository at this point in the history
…ntroller::indexAction
  • Loading branch information
adrianwaler committed Dec 20, 2016
1 parent cdb8672 commit a5b16ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Kunstmaan/ConfigBundle/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function indexAction(Request $request, $internalName)
$this->em->persist($config);
$this->em->flush();

return new RedirectResponse($this->router->generate('kunstmaanconfigbundle_default', array('internal_name' => $internalName)));
return new RedirectResponse($this->router->generate('kunstmaanconfigbundle_default', array('internalName' => $internalName)));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function adaptChildren(MenuBuilder $menu, array &$children, MenuItem $par
$menuItem = new MenuItem($menu);
$menuItem
->setRoute('kunstmaanconfigbundle_default')
->setRouteParams(array('internal_name' => $entity->getInternalName()))
->setRouteParams(array('internalName' => $entity->getInternalName()))
->setLabel($entity->getLabel())
->setUniqueId($entity->getInternalName())
->setParent($parent);
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/ConfigBundle/Resources/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kunstmaanconfigbundle_default:
path: /admin/settings/config/{internal_name}
path: /admin/settings/config/{internalName}
defaults:
_controller: kunstmaan_config.controller.config:indexAction

0 comments on commit a5b16ac

Please sign in to comment.