mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #36161
[Bug 1599305] [NEW] $USER->get('grouproles') returning values for deleted groups
Public bug reported:
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/elements/filebrowser.php:380) Undefined offset: 0
[WAR] 33 (lib/form/elements/filebrowser.php:380) Trying to get property of non-object
The reason for this is the $USER->get('grouproles') still holds the role
to the deleted group even if you log out and back in again.
We should only populate the grouproles with roles to non-deleted groups.
** Affects: mahara
Importance: High
Assignee: Robert Lyon (robertl-9)
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1599305
Title:
$USER->get('grouproles') returning values for deleted groups
Status in Mahara:
New
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/elements/filebrowser.php:380) Undefined offset: 0
[WAR] 33 (lib/form/elements/filebrowser.php:380) Trying to get property of non-object
The reason for this is the $USER->get('grouproles') still holds the
role to the deleted group even if you log out and back in again.
We should only populate the grouproles with roles to non-deleted
groups.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1599305/+subscriptions
Follow ups
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Robert Lyon, 2016-10-21
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Son Nguyen, 2016-07-11
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Robert Lyon, 2016-07-11
-
[Bug 1599305] A change has been merged
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] A change has been merged
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Robert Lyon, 2016-07-10
-
[Bug 1599305] A change has been merged
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] A patch has been submitted for review
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] A patch has been submitted for review
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] A patch has been submitted for review
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Robert Lyon, 2016-07-10
-
[Bug 1599305] A change has been merged
From: Mahara Bot, 2016-07-10
-
[Bug 1599305] Re: $USER->get('grouproles') returning values for deleted groups
From: Kristina Hoeppner, 2016-07-08
-
[Bug 1599305] A patch has been submitted for review
From: Mahara Bot, 2016-07-05