Skip to:
Content

BuddyPress.org

Changeset 5


Ignore:
Timestamp:
04/01/2008 01:42:10 AM (17 years ago)
Author:
apeatling
Message:

Andy P: Fixed issue with required fields not validating on first entry. Fixed saving of datebox fields

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp_xprofile.php

    r1 r5  
    227227                {   
    228228                    $field = new BP_XProfile_Field($group->fields[$j]->id);
    229 
     229                   
    230230                    if(isset($_GET['mode']) && $_GET['mode'] == "save")
    231231                    {
    232                         $post_field_string = ( $group->fields[$j]->field_type == 'datebox' ) ? '_day' : null;
     232                        $post_field_string = ( $group->fields[$j]->type == 'datebox' ) ? '_day' : null;
    233233                        $current_field = $_POST['field_' . $group->fields[$j]->id . $post_field_string];
    234 
    235                         if(isset($current_field) && ($field->data->value != $current_field))
     234                   
     235                        if(isset($current_field) /*&& ($field->data->value != $current_field)*/)
    236236                        {
    237237                            if($field->is_required && $current_field == '')
  • trunk/bp_xprofile/bp_xprofile.classes.php

    r1 r5  
    882882                        " . $this->last_updated . "
    883883                    )";
    884                     echo $sql;
    885884            }
    886885                       
Note: See TracChangeset for help on using the changeset viewer.