]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 357677 Crash on enter_bug.cgi
authortimeless%mozdev.org <>
Mon, 23 Oct 2006 22:46:33 +0000 (22:46 +0000)
committertimeless%mozdev.org <>
Mon, 23 Oct 2006 22:46:33 +0000 (22:46 +0000)
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

Bugzilla/User.pm

index ce778c728eb96b94618321573121eff7fa98fb77..947d0089e6cb0068608c46234d6dad47dcae4cd8 100644 (file)
@@ -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);