Skip to:
Content

BuddyPress.org

Ticket #8500: 8500.patch

File 8500.patch, 790 bytes (added by imath, 4 years ago)
  • src/bp-xprofile/bp-xprofile-functions.php

    diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
    index 4cd86ddad..28c8be56f 100644
    function bp_xprofile_get_signup_field_ids() { 
    14361436                global $wpdb;
    14371437                $bp = buddypress();
    14381438
    1439                 $signup_field_ids = $wpdb->get_col( "SELECT object_id FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'signup_position' ORDER BY meta_value ASC" );
     1439                $signup_field_ids = $wpdb->get_col( "SELECT object_id FROM {$bp->profile->table_name_meta} WHERE object_type = 'field' AND meta_key = 'signup_position' ORDER BY CONVERT(meta_value, SIGNED) ASC" );
    14401440
    14411441                wp_cache_set( 'signup_fields', $signup_field_ids, 'bp_xprofile' );
    14421442        }