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

DriesK drupal-devel at drupal.org
Mon Aug 22 13:39:43 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:      4.6.0
+Version:      cvs
 Component:    profile.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  jmengle
 Updated by:   DriesK
-Status:       active
+Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/del_profile_values.patch (867 bytes)

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




DriesK



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?







More information about the drupal-devel mailing list