Commit 2d33c8a8 authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 357677 Crash on enter_bug.cgi

Patch by Fré©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
parent c33b4eb3
...@@ -90,6 +90,7 @@ use constant DB_COLUMNS => ( ...@@ -90,6 +90,7 @@ use constant DB_COLUMNS => (
); );
use constant NAME_FIELD => 'login_name'; use constant NAME_FIELD => 'login_name';
use constant ID_FIELD => 'userid'; use constant ID_FIELD => 'userid';
use constant LIST_ORDER => NAME_FIELD;
use constant REQUIRED_CREATE_FIELDS => qw(login_name cryptpassword); use constant REQUIRED_CREATE_FIELDS => qw(login_name cryptpassword);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment