Bug 357677 Crash on enter_bug.cgi

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
This commit is contained in:
timeless%mozdev.org 2006-10-23 15:46:33 +00:00
Родитель cfd35e7c04
Коммит 8820807891
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -90,6 +90,7 @@ use constant DB_COLUMNS => (
);
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);