From 9563d44598aadedddc5e5425bfc04e73061f9b54 Mon Sep 17 00:00:00 2001 From: David Bezemer Date: Thu, 16 Jan 2014 11:17:24 +0100 Subject: [PATCH] Once and for all fix participation report --- fixes/report/participation/index.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fixes/report/participation/index.php b/fixes/report/participation/index.php index 5e36846..8c23212 100644 --- a/fixes/report/participation/index.php +++ b/fixes/report/participation/index.php @@ -138,10 +138,7 @@ } // TODO: we need a new list of roles that are visible here -$roles = get_roles_used_in_context($context); -$guestrole = get_guest_role(); -$roles[$guestrole->id] = $guestrole; -$roleoptions = role_fix_names($roles, $context, ROLENAME_ALIAS, true); +$roleoptions = role_fix_names(get_all_roles($context), $context, ROLENAME_ALIAS, true); // print first controls. echo '
'."\n". -- 1.8.5.1