Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.16.14

Bug #419 Foreign Key constraint violation
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)    

 [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.


 [2003-12-15 12:16 UTC] arnaud
Fixed in CVS. I also applied the changes to the removeGroup method.