Changeset 3544
- Timestamp:
- 12/20/2010 01:10:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-classes.php
r3542 r3544 385 385 386 386 if ( 'radio' == $this->type ) { 387 $options = $_POST['radio_option'];388 $defaults = $_POST['isDefault_radio_option'];387 $options = apply_filters( 'xprofile_field_options_before_save', $_POST['radio_option'], 'radio' ); 388 $defaults = apply_filters( 'xprofile_field_default_before_save', $_POST['isDefault_radio_option'], 'radio' ); 389 389 390 390 } else if ( 'selectbox' == $this->type ) { 391 $options = $_POST['selectbox_option'];392 $defaults = $_POST['isDefault_selectbox_option'];391 $options = apply_filters( 'xprofile_field_options_before_save', $_POST['selectbox_option'], 'selectbox' ); 392 $defaults = apply_filters( 'xprofile_field_default_before_save', $_POST['isDefault_selectbox_option'], 'selectbox' ); 393 393 394 394 } else if ( 'multiselectbox' == $this->type ) { 395 $options = $_POST['multiselectbox_option'];396 $defaults = $_POST['isDefault_multiselectbox_option'];395 $options = apply_filters( 'xprofile_field_options_before_save', $_POST['multiselectbox_option'], 'multiselectbox' ); 396 $defaults = apply_filters( 'xprofile_field_default_before_save', $_POST['isDefault_multiselectbox_option'], 'multiselectbox' ); 397 397 398 398 } else if ( 'checkbox' == $this->type ) { 399 $options = $_POST['checkbox_option'];400 $defaults = $_POST['isDefault_checkbox_option'];399 $options = apply_filters( 'xprofile_field_options_before_save', $_POST['checkbox_option'], 'checkbox' ); 400 $defaults = apply_filters( 'xprofile_field_default_before_save', $_POST['isDefault_checkbox_option'], 'checkbox' ); 401 401 } 402 402 … … 611 611 $action = "admin.php?page=bp-profile-setup&group_id=" . $this->group_id . "&mode=add_field#tabs-" . $this->group_id; 612 612 613 $this->name = $_POST['title']; 614 $this->description = $_POST['description']; 615 $this->is_required = $_POST['required']; 616 $this->type = $_POST['fieldtype']; 617 $this->order_by = $_POST["sort_order_{$this->type}"]; 618 $this->field_order = $_POST['field_order']; 613 if ( !empty( $_POST['saveField'] ) ) { 614 $this->name = $_POST['title']; 615 $this->description = $_POST['description']; 616 $this->is_required = $_POST['required']; 617 $this->type = $_POST['fieldtype']; 618 $this->order_by = $_POST["sort_order_{$this->type}"]; 619 $this->field_order = $_POST['field_order']; 620 } 619 621 } else { 620 622 $title = __( 'Edit Field', 'buddypress' );
Note: See TracChangeset
for help on using the changeset viewer.