[buddypress-trac] [BuddyPress Trac] #7154: bp_profile_get_field_groups() does not set `fields` property for xprofile groups without fields

buddypress-trac noreply at wordpress.org
Sat Jul 2 11:25:07 UTC 2016


#7154: bp_profile_get_field_groups() does not set `fields` property for xprofile
groups without fields
------------------------------+---------------------
 Reporter:  DJPaul            |       Owner:  djpaul
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  2.7
Component:  Extended Profile  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |
------------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10935"]:
 {{{
 #!CommitTicketReference repository="" revision="10935"
 xprofile: always initialise `fields` property when fetching field groups.

 When using `bp_profile_get_field_groups`, xprofile field groups without
 any fields did not have a `fields` property set in the return value. This
 changes initialises the property to an empty array, to increase the data
 consistency of the results.

 Fixes #7154
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7154#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list