Home » Authentication » LiveUser » Bug #419
Foreign Key constraint violation
Details
| Submitted | 2003-12-12 23:34 UTC |
|---|---|
| From | kipaten21 at hotmail dot com |
| Assigned | arnaud |
| Status | Closed |
| Package | LiveUser |
| PHP Version | Irrelevant |
| OS | ANY |
| Roadmaps | (Not assigned) |
Comments
[2003-12-12 23:34 UTC] kipaten21 at hotmail dot com
Description:
------------
In the method LiveUser_Admin_Perm_DB_Common::removeArea(), the rights and areaadmins should be removed before the actual area is deleted to avoid a foreign key constraint violation.
Also in LiveUser_Admin_Perm_DB_Common::removeRight(), the userrights and grouprights should be removed before moving the actual right for the same reason.
Any other method that removes items should probably follow the same rule, delete all children before deleting the parent.
P.S. Don't forget about the other Admin classes also.