[buddypress-trac] [BuddyPress] #2209: xprofile_insert_field() does not accept 'type' => 'option'
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Mar 18 14:45:22 UTC 2010
#2209: xprofile_insert_field() does not accept 'type' => 'option'
----------------------+-----------------------------------------------------
Reporter: jollari | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: XProfile | Keywords:
----------------------+-----------------------------------------------------
When calling xprofile_insert_field() you are unable to use type=>
'option'. I believe this is because the function passes this info to
BP_XProfile_Group::save() which is expecting to take
$_POST(selectbox_option) data from the $_POST to add options. But when
calling this from something like register_activation_hook() you are able
to add a selectbox, but not it's options. This other ticket may be
related, http://trac.buddypress.org/ticket/1024, as it makes sense to
instatiate a new selectbox, then use it's ID to create it's options.
--
Ticket URL: <http://trac.buddypress.org/ticket/2209>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list