Skip to content

Commit

Permalink
Fix route on roles permissions overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed May 12, 2017
1 parent c6a59f3 commit 1a34f6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion og_ui/src/Controller/OgUiController.php
Expand Up @@ -72,6 +72,7 @@ public static function create(ContainerInterface $container) {
* The overview as a render array.
*/
public function rolesPermissionsOverviewPage($type) {
$route = $type === 'roles' ? 'entity.og_role.collection' : 'og_ui.permissions_overview';
$action = $type === 'roles' ? t('Edit roles') : t('Edit permissions');
$header = [t('Group type'), t('Operations')];
$rows = [];
Expand All @@ -86,7 +87,7 @@ public function rolesPermissionsOverviewPage($type) {
'data' => $definition->getLabel() . ' - ' . $bundle_info[$bundle]['label'],
],
[
'data' => Link::createFromRoute($action, 'og_ui.' . $type . '_overview', [
'data' => Link::createFromRoute($action, $route, [
'entity_type_id' => $entity_type,
'bundle_id' => $bundle,
]),
Expand Down

0 comments on commit 1a34f6c

Please sign in to comment.