Can't delete institution when users have accepted its privacy statement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic |
Bug Description
to replicate:
Set privacy switch to true in 'Site opstions' -> "Institutions'
Create an institution and add a privacy to it
Add a user to the institution, login as the user and accept the privacy statement
Remove the user from the institution
Try to delete the institution
An error is displayed and the institution is not deleted:
[WAR] 92 (lib/errors.
DETAIL: Key (id)=(5) is still referenced from table "usr_agreement".] in adodb_throw(DELETE FROM "site_content_
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
This would also need to be checked for the Terms and Conditions as they rely on pretty much the same code.