Patch by Frédéric Buclin <LpSolit@gmail.com>
r=ghendricks r=colin.ogilvie
Object->new_from_list() orders the list by LIST_ORDER
which have these defaults:
LIST_ORDER => NAME_FIELD
NAME_FIELD => 'name'
but the profiles table has login_name, not name
so this object needs to set NAME_FIELD
);
use constant NAME_FIELD => 'login_name';
use constant ID_FIELD => 'userid';
+use constant LIST_ORDER => NAME_FIELD;
use constant REQUIRED_CREATE_FIELDS => qw(login_name cryptpassword);