From e8f272c6f79dc8a919911d88a5b455bc67792f64 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 8 Apr 2018 15:19:01 -0400 Subject: Bug 1427884 - Add upgrade tests from 4.2 to Harmony on mysql --- extensions/Review/Extension.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extensions/Review/Extension.pm') diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm index 967679eed..576c31c7e 100644 --- a/extensions/Review/Extension.pm +++ b/extensions/Review/Extension.pm @@ -284,12 +284,14 @@ sub object_columns { my ($self, $args) = @_; my ($class, $columns) = @$args{qw(class columns)}; if ($class->isa('Bugzilla::Product')) { - push @$columns, 'reviewer_required'; + my $dbh = Bugzilla->dbh; + my @new_columns = qw(reviewer_required); + push @$columns, grep { $dbh->bz_column_info($class->DB_TABLE, $_) } @new_columns; } elsif ($class->isa('Bugzilla::User')) { my $dbh = Bugzilla->dbh; my @new_columns = qw(review_request_count feedback_request_count needinfo_request_count); - push @$columns, grep { $dbh->bz_column_info(Bugzilla::User->DB_TABLE, $_ } @new_columns; + push @$columns, grep { $dbh->bz_column_info($class->DB_TABLE, $_) } @new_columns; } } -- cgit v1.2.3-24-g4f1b