diff options
author | timeless%mozdev.org <> | 2006-10-24 00:46:33 +0200 |
---|---|---|
committer | timeless%mozdev.org <> | 2006-10-24 00:46:33 +0200 |
commit | 2d33c8a801b5f522b5adfd9434fda16d08009524 (patch) | |
tree | 7a9a36d119053a1c00f2a7a4d4597df9f964ab0e | |
parent | c33b4eb31dbf095c98bf5bf8950e114b80273f08 (diff) | |
download | bugzilla-2d33c8a801b5f522b5adfd9434fda16d08009524.tar.gz bugzilla-2d33c8a801b5f522b5adfd9434fda16d08009524.tar.xz |
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
-rw-r--r-- | Bugzilla/User.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ce778c728..947d0089e 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -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); |