diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-06 11:10:33 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-06 11:10:33 -0800 |
commit | b93244395f2c5643ae5e1be1e4e1d652c6d654c1 (patch) | |
tree | 1d3d15d20f11e3e5601944b215ba36908cdea2d1 /tpl | |
parent | fe181002814359620e962454444917580ee51970 (diff) |
Fix for broken profile flag admin UI: delete stray flag entries when users are deleted so broken entries don't litter the lookups.
* added ProfileDeleteRelated event to match UserDeleteRelated, to allow plugins to add extra related tables on profile deletion
* UserFlagPlugin: deleting flags when target profile is deleted
* UserFlagPlugin: deleting flags when flagging user is deleted
* UserFlagPlugin: fix for autoloader -- class names are case-insensitive. We may get lowercase class names coming in at times, such as when creating DB objects programatically from a table name.
Note that any already-existing bogus entries need to be removed from the database:
select * from user_flag_profile where (select id from profile where id=profile_id) is null;
select * from user_flag_profile where (select id from user where id=user_id) is null;
Diffstat (limited to 'tpl')
0 files changed, 0 insertions, 0 deletions