This commit is contained in:
Jun Pataleta 2022-02-10 22:41:47 +08:00
commit 9dd8909360
2 changed files with 3 additions and 0 deletions

View File

@ -214,9 +214,11 @@ class audience {
$notavailablestr = get_string('notavailable', 'moodle');
$audiencetypes = self::get_audience_types();
$audiencetypeindex = 0;
foreach ($audiencetypes as $categoryname => $audience) {
$menucards = [
'name' => $categoryname,
'key' => 'index' . ++$audiencetypeindex,
];
foreach ($audience as $classname => $name) {

View File

@ -22,6 +22,7 @@
Example context (json):
{
"name": "General",
"key": "general",
"items": [{
"name": "Manually added users",
"identifier": "core_reportbuilder:users"