From: timeless%mozdev.org <> Date: Mon, 23 Oct 2006 22:46:33 +0000 (+0000) Subject: Bug 357677 Crash on enter_bug.cgi X-Git-Tag: bugzilla-2.23.4~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d33c8a801b5f522b5adfd9434fda16d08009524;p=thirdparty%2Fbugzilla.git Bug 357677 Crash on enter_bug.cgi Patch by Frédéric Buclin 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 --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ce778c728e..947d0089e6 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);