Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

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 Nov 27, 2017
1 parent 85279bf commit 20af809
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion og_ui/src/Controller/OgUiController.php
Original file line number Diff line number Diff line change
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 20af809

Please sign in to comment.