[buddypress-trac] [BuddyPress Trac] #5589: Duplicated fields using Buddypress Xprofile Custom Fields Type and custom theme not from buddypress

buddypress-trac noreply at wordpress.org
Fri May 2 09:02:40 UTC 2014


#5589: Duplicated fields using Buddypress Xprofile Custom Fields Type and custom
theme not from buddypress
--------------------------+---------------------
 Reporter:  atallos       |       Owner:  djpaul
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  2.0.1
Component:  XProfile      |     Version:  2.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by atallos):

 Hi, I'm really sorry but I talk before test everything... :(

 When you click on save changes in edit profile, the form show this error:
 "There was a problem updating some of your profile information, please try
 again.". This happens because the new class you add
 "BP_XProfile_Field_Type_Placeholder" is working great for the issue of
 duplicates fields but when buddypress is setting data with
 "xprofile_set_field_data", first you check with is_valid if the value of
 the field is valid and if it is one of my custom field,
 BP_XProfile_Field_Type_Placeholder will return always false. When you have
 before the Textbox by default this was working because everything will
 return true in function is_valid.

 I believe then you have to implement is_valid method inside
 BP_XProfile_Field_Type_Placeholder and return always true.

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


More information about the buddypress-trac mailing list