From 2d33c8a801b5f522b5adfd9434fda16d08009524 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" <> Date: Mon, 23 Oct 2006 22:46:33 +0000 Subject: Bug 357677 Crash on enter_bug.cgi Patch by Frédéric Buclin r=ghendricks r=colin.ogilvie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/User.pm') 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); -- cgit v1.2.3-24-g4f1b