Opened 10 years ago
Closed 10 years ago
#7154 closed enhancement (fixed)
bp_profile_get_field_groups() does not set `fields` property for xprofile groups without fields
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Extended Profile | Keywords: | |
| Cc: |
Description
When using bp_profile_get_field_groups, you get an array of objects for each profile field group. Within each object, there's a property fields which is an array of objects for the fields in that group.
However, if a field group has no fields, this fields property is not set. It really should be set as an empty array for consistency in its return types.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 10935: