-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.2
-
MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
Easy
-
- log in as admin
- create a new role and save it (no matter what setup)
- check reports/logs: The user with id '2' updated the capabilities for the role with id '0'.
this is obviously wrong. I didn't change any role, however created a new one.
This should say at least the exact role id, or change the text as well.
One possible solution:
In admin/roles/define.php, line 204:
'objectid' => $roleid
where $roleid is 0 because its an optional_parameter.
changing to $tableroleid seems to solve the problem, now the event gets the newly created role's id in the objectid.