[buddypress-trac] [BuddyPress Trac] #6789: XProfile: do not store serialized arrays for multi-value profile field data

buddypress-trac noreply at wordpress.org
Thu Jun 15 14:31:04 UTC 2017


#6789: XProfile: do not store serialized arrays for multi-value profile field data
------------------------------+-----------------------------
 Reporter:  Offereins         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Extended Profile  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+-----------------------------

Comment (by Offereins):

 Just stumbled upon the (hypothetical) issue of xprofile meta, which is
 equally possible for data(!) as for fields and groups. The unique `id` of
 a profile data object currently equals the data row's `id`. This
 apparently gets messed up when multiple rows of data exist for a single
 data object. In case of meta, this triggers the question of which id to
 use to store meta for the data object.

 For now I'm suggesting to use the last row's item id. For storing profile
 data meta, this is probably not so much a problem. Querying profile data
 by meta is a different story perhaps, as you get a single data row where
 multiple may apply for the field - though it's probably advised to use the
 default API functions anyway. You know, filtering.

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


More information about the buddypress-trac mailing list