Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/05/2008 12:15:13 AM (18 years ago)
Author:
apeatling
Message:

Fixed the validation of dates on signup form, as well as callback of values. Dates entered on the signup form now save correctly and pass through to an activated account profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp_xprofile/bp_xprofile.classes.php

    r9 r10  
    519519                }
    520520               
    521                 $html .= '<div id="field_' . $this->id . '"';
     521                $html .= '<div id="field_' . $this->id . '">';
    522522                $html .= '<label for="field_' . $this->id . '_day">' . $asterisk . $this->name . ':</label>';
    523523               
     
    780780    }
    781781   
     782    function get_type($field_id)
     783    {
     784        global $wpdb, $bp_xprofile_table_name;
     785
     786        if(bp_core_validate($field_id))
     787        {
     788            $sql = "SELECT type
     789                    FROM " . $bp_xprofile_table_name . "_fields
     790                    WHERE id = " . $field_id;
     791
     792            if(!$field_type = $wpdb->get_var($sql))
     793            {
     794                return false;
     795            }
     796       
     797            return $field_type;
     798        }
     799       
     800        return false;
     801    }
    782802}
    783803
Note: See TracChangeset for help on using the changeset viewer.