[drupal-devel] [bug] Deleting a profile field doesn't delete values in profile_values

Bèr Kessels drupal-devel at drupal.org
Mon Aug 22 17:53:15 UTC 2005


Issue status update for 
http://drupal.org/node/24678
Post a follow up: 
http://drupal.org/project/comments/add/24678

 Project:      Drupal
 Version:      cvs
 Component:    profile.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jmengle
 Updated by:   Bèr Kessels
 Status:       patch (code needs work)

a default confirmation should do, imo.




Bèr Kessels



Previous comments:
------------------------------------------------------------------------

Thu, 09 Jun 2005 18:18:13 +0000 : jmengle

If you have a field in the profile, and users fill in that field, and
later that field is deleted all together, the entry in the
profile_fields table is deleted, but the values for that field in
profile_values aren't deleted.




------------------------------------------------------------------------

Thu, 09 Jun 2005 18:27:13 +0000 : jmengle

Attachment: http://drupal.org/files/issues/profile_2.module (22.59 KB)

Found where the field was deleted in profile.module and added a line to
delete the field values from profile_values.




------------------------------------------------------------------------

Mon, 22 Aug 2005 02:54:13 +0000 : Uwe Hermann

Can you please provide a proper patch?




------------------------------------------------------------------------

Mon, 22 Aug 2005 13:39:33 +0000 : DriesK

Attachment: http://drupal.org/files/issues/del_profile_values.patch (867 bytes)

This is a patch of the db-cleanup code that jmengle added.




------------------------------------------------------------------------

Mon, 22 Aug 2005 14:16:59 +0000 : moshe weitzman

please provide big red warning to admins before they do this. this is a
very destructive operation.







More information about the drupal-devel mailing list