Opened 12 years ago
Closed 12 years ago
#5692 closed enhancement (fixed)
"bp_xprofile_field_get_children" filter not called if no children present
| Reported by: | drkane | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Extended Profile | Version: | 2.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The "bp_xprofile_field_get_children" filter is not called if there are no children found in the SQL query in row 750 of /buddypress/bp-xprofile/bp-xprofile-classes.php, in the "get_children" function. Instead false is immediately returned.
This means that if you want to add in children through a custom filter, there have to be dummy children present in the database.
A use case for this might be a field which allows you to select a country. Rather than add each individual country as a selection option, which would take a long time, we could instead add them through a filter in a plugin.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 8478: