[buddypress-trac] [BuddyPress] #2586: BP_XProfile_ProfileData->populate() should still populate field_id and user_id when not in db

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Aug 14 14:56:46 UTC 2010


#2586: BP_XProfile_ProfileData->populate() should still populate field_id and
user_id when not in db
---------------------+------------------------------------------------------
 Reporter:  smurkas  |       Owner:     
     Type:  defect   |      Status:  new
 Priority:  normal   |   Milestone:     
Component:  Core     |    Keywords:     
---------------------+------------------------------------------------------
 Right now when a new BP_XProfile_Field is instanced and there isn't any
 data for the field in the database setting the field value and then
 running save will fail.

 In order to actually be able to save the field the field_id and user_id
 has to be set manually even though these variables are known when the
 field data is populated.

 This fix will populate field_id and user_id when a row is not found in the
 database and thus allowing just setting the value and then calling save to
 work.

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


More information about the buddypress-trac mailing list