[buddypress-trac] [BuddyPress] #4275: BP 1.6beta1 : xprofile metas default_visibility and allow_custom_visibility not saved when field is created

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Jun 19 12:18:20 UTC 2012


#4275: BP 1.6beta1 : xprofile metas default_visibility and allow_custom_visibility
not saved when field is created
--------------------------+-----------------------
 Reporter:  imath         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  1.6
Component:  XProfile      |     Version:  1.6-beta
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by boonebgorges):

 (In [6117]) In xprofile_admin_manage_field(), make sure $field_id is set
 before setting meta

 When creating a new profile field, it's necessary to ensure that $field_id
 is
 set, or calls to bp_xprofile_update_meta() and related wrapper functions
 will
 fail. That means that, eg, field visibility settings are not properly
 stored
 on the initial field creation. This changeset fixes the problem by
 ensuring
 that $field_id has been populated before carrying on with the setup
 routine.

 See #4275

 Props imath

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4275#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list