зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 232154: Make old column lists work again by correctly translating old -> new column names.
r=bbaetz
This commit is contained in:
Родитель
e435fbdfe6
Коммит
6524045f4a
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче