Skip to:

Opened 14 years ago

Closed 13 years ago

#2209 closed defect (bug) (no action required)

xprofile_insert_field() does not accept 'type' => 'option'

Reported by: jollari's profile jollari Owned by:
Milestone: Priority: minor
Severity: normal Version:
Component: Extended Profile 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,, as it makes sense to instatiate a new selectbox, then use it's ID to create it's options.

Change History (1)

#1 @boonebgorges
13 years ago

  • Resolution set to invalid
  • Severity set to normal
  • Status changed from new to closed

Not sure that this is still an issue. The code looks ok to me, and we use it internally to create selectboxes and their options.

If you are requesting that you be able to add options to an *existing* selectbox field, then I suggest you instantiate the BP_XProfile_Field object, and mod the $options. This is also what we do internally.

Note: See TracTickets for help on using tickets.