Index: modules/profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile.module,v retrieving revision 1.104 diff -u -Ffunction -r1.104 profile.module --- modules/profile.module 10 Aug 2005 20:52:00 -0000 1.104 +++ modules/profile.module 22 Aug 2005 13:29:49 -0000 @@ -564,6 +564,7 @@ function profile_admin_delete($fid) { $field = db_fetch_object(db_query("SELECT title FROM {profile_fields} WHERE fid = %d", $fid)); if ($_POST['edit']['confirm']) { db_query('DELETE FROM {profile_fields} WHERE fid = %d', $fid); + db_query('DELETE FROM {profile_values} WHERE fid = %d', $fid); cache_clear_all(); drupal_set_message(t('The field %field has been deleted.', array('%field' => theme('placeholder', $field->title)))); drupal_goto('admin/settings/profile');