Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 3 years ago

#8864 closed defect (bug) (fixed)

Deleted field data are not removed from bp_xprofile_data

Reported by: mike80222 Owned by: imath
Priority: normal Milestone: 12.0.0
Component: Extended Profile Version:
Severity: normal Keywords: needs-testing has-patch
Cc:

Description

When an xprofile field is deleted, the field is removed from bp_xprofile_fields, but the corresponding data is not removed from bp_xprofile_data. The upshot is that members_search finds both the old and the new data, resulting in incorrect search results.

Change History (4)

#1 @imath
4 years ago

  • Keywords needs-testing added
  • Milestone Awaiting Review → 12.0.0

This ticket was mentioned in ​PR #114 on ​buddypress/buddypress by ​@imath.


3 years ago
#2

  • Keywords has-patch added

Add a checkbox to let the admin also remove the deleted field data.

Trac ticket: ​https://buddypress.trac.wordpress.org/ticket/8864

#3 @imath
3 years ago

Hi @mike80222

Thanks a lot for your report. I confirm the issue. In the above PR, I'm adding a checkbox to the Delete field confirmation screen to opt-out field data removal. By default, deleted field data should be deleted I agree.

#4 @imath
3 years ago

  • Owner set to imath
  • Resolution → fixed
  • Status new → closed

In 13498:

xProfile: let the admin also remove data when deleting a field

Add a checkbox, active by default, informing deleting a field from the xProfile field Administration screen will also remove corresponding data. Opting out of this checkbox will let data in place.

Removing a deleted field corresponding data is improving Members search results consistency.

Props mike80222

Fixes #8864
Closes ​https://github.com/buddypress/buddypress/pull/114

Note: See TracTickets for help on using tickets.