Fix for bug 232154: Make old column lists work again by correctly translating old -> new column names.

r=bbaetz
This commit is contained in:
myk%mozilla.org 2004-01-26 07:58:26 +00:00
Родитель e435fbdfe6
Коммит 6524045f4a
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -436,13 +436,13 @@ if (defined $params->param('columnlist')) {
elsif (defined $::COOKIE{'COLUMNLIST'}) { elsif (defined $::COOKIE{'COLUMNLIST'}) {
# 2002-10-31 Rename column names (see bug 176461) # 2002-10-31 Rename column names (see bug 176461)
my $columnlist = $::COOKIE{'COLUMNLIST'}; my $columnlist = $::COOKIE{'COLUMNLIST'};
$columnlist =~ s/owner/assigned_to/; $columnlist =~ s/\bowner\b/assigned_to/;
$columnlist =~ s/owner_realname/assigned_to_realname/; $columnlist =~ s/\bowner_realname\b/assigned_to_realname/;
$columnlist =~ s/[^_]platform/rep_platform/; $columnlist =~ s/\bplatform\b/rep_platform/;
$columnlist =~ s/[^_]severity/bug_severity/; $columnlist =~ s/\bseverity\b/bug_severity/;
$columnlist =~ s/[^_]status\b/bug_status/; $columnlist =~ s/\bstatus\b/bug_status/;
$columnlist =~ s/summaryfull/short_desc/; $columnlist =~ s/\bsummaryfull\b/short_desc/;
$columnlist =~ s/summary/short_short_desc/; $columnlist =~ s/\bsummary\b/short_short_desc/;
# Use the columns listed in the user's preferences. # Use the columns listed in the user's preferences.
@displaycolumns = split(/ /, $columnlist); @displaycolumns = split(/ /, $columnlist);