-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.4, 3.3
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
wip-
MDL-59898-master-test -
As Admin when you go to "Home -> Courses -> MyCourse -> Users -> Permissions"
and (wait for popupmenu) add an allowance for a role, no delete icon for this new role is shown next to it.
For it to appear a refresh of the page is necessary.
The issue seems to be a missing icon variable for the mustache template permissionmanager_role.
At least the issue was resolved when i added following lines to lib/amd/scr/permissionmanager.js (js dev mode)
//begins with line 106
|
case 'allow': |
templatedata.spanclass = 'allowed'; |
templatedata.linkclass = 'preventlink'; |
templatedata.action = 'prevent'; |
templatedata.icon = 't/delete'; // <-- Line added |
break; |
case 'prohibit': |
templatedata.spanclass = 'forbidden'; |
templatedata.linkclass = 'unprohibitlink'; |
templatedata.action = 'unprohibit'; |
templatedata.icon = 't/delete'; // <-- Line added |
break; |
git: https://github.com/TobiGa/moodle/commit/81fd3d522b47d36cf93f00297aac219a56663cef