Skip to:
Content

BuddyPress.org

Opened 13 years ago

Closed 13 years ago

#3523 closed enhancement (fixed)

add $selected parameter to bp_get_the_profile_field_options_* filters

Reported by: sboisvert's profile sboisvert Owned by:
Milestone: 1.5 Priority: trivial
Severity: trivial Version:
Component: Extended Profile Keywords: has-patch
Cc:

Description

This is a simple patch that passes the already calculated value of $selected to the filters that handle displaying field_options.

Attachments (2)

add_selected_field_options.patch (3.3 KB) - added by sboisvert 13 years ago.
add_selected_field_options_with_fieldID.patch (3.3 KB) - added by sboisvert 13 years ago.

Download all attachments as: .zip

Change History (5)

#1 @sboisvert
13 years ago

My bad, the second patch should supersede the first, it passes the field->id parameters to the filter for radio and checkbox as well as the $k parameter for checkboxes.

Last edited 13 years ago by sboisvert (previous) (diff)

#2 @boonebgorges
13 years ago

  • Milestone changed from Awaiting Review to 1.5
  • Priority changed from normal to trivial
  • Severity changed from minor to trivial

#3 @boonebgorges
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5045]) Passes additional values to filters in bp_get_the_profile_field_options(). Fixes #3523. Props sboisvert

Note: See TracTickets for help on using tickets.