Skip to:
Content

BuddyPress.org

Ticket #2694: bp-xprofile-templatetags.diff

File bp-xprofile-templatetags.diff, 685 bytes (added by jond, 14 years ago)

Patch file (diff) of fixes for the default radio setting conflict

  • bp-xprofile-templatetags.php

     
    409409                                                        $option_value = $_POST['field_' . $field->id];
    410410                                        }
    411411
    412                                         if ( $option_value == $options[$k]->name || $value == $options[$k]->name || $options[$k]->is_default_option ) {
     412                                        if ( $option_value == $options[$k]->name ||
     413                                                        $value == $options[$k]->name ||
     414                                                        (
     415                                                                empty($option_value) &&
     416                                                                $options[$k]->is_default_option
     417                                                        )
     418                                           ) {
    413419                                                $selected = ' checked="checked"';
    414420                                        } else {
    415421                                                $selected = '';