[buddypress-trac] [BuddyPress] #2947: bp_get_the_profile_field_options( 'type=datebox' ) - missing saved value and "type" parameter in filter

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Dec 13 20:45:17 UTC 2010


#2947: bp_get_the_profile_field_options( 'type=datebox' ) - missing saved value
and "type" parameter in filter
-----------------------+----------------------------------------------------
 Reporter:  r-a-y      |       Owner:                 
     Type:  defect     |      Status:  new            
 Priority:  normal     |   Milestone:  Awaiting Review
Component:  XProfile   |     Version:  1.3            
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
 As I was debugging:
 http://buddypress.org/community/groups/how-to-and-
 troubleshooting/forum/topic/date-selector-datebox-control-doesnt-allow-
 future-dates/

 I found that $field->data->value is always empty in
 bp_get_the_profile_field_options( 'type=datebox' ), which prevents the
 datebox field to grab the saved value from the DB when editing a datebox
 field on the frontend.

 Also the "bp_get_the_profile_field_datebox" filter should add the $type
 parameter, so plugins can override the day/month/year fields.

 Patch against 1.3-bleeding.

 Should also patch for 1.2.6 as this is a bug.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2947>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list