$USER->get('grouproles') returning values for deleted groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
15.04 |
Fix Released
|
High
|
Unassigned | ||
15.10 |
Fix Released
|
High
|
Unassigned | ||
16.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
To test:
1) Have a Mahara site with production mode set to off
2) Create a new user and login as that user
3) Create a group then delete the group
4) Create a page and add an image block to the page
5) Select the 'group files' tab - there should be nothing to select
6) Click the 'remove' link for the configuration form
7) Navigate away and you should see these errors:
[WAR] 33 (lib/form/
[WAR] 33 (lib/form/
The reason for this is the $USER->
We should only populate the grouproles with roles to non-deleted groups.
Changed in mahara: | |
status: | New → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/6651