diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-08 19:54:54 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-04-08 19:54:54 +0200 |
commit | 3293a1f85c9e20893e6823d1f83b667ec9ca9534 (patch) | |
tree | 653b571244b0bff4d2fd337a9d3f651a59567a62 | |
parent | 9b78d8ed7e834775af4e45dcfce7f33030a33495 (diff) | |
download | bugzilla-3293a1f85c9e20893e6823d1f83b667ec9ca9534.tar.gz bugzilla-3293a1f85c9e20893e6823d1f83b667ec9ca9534.tar.xz |
fix new columns in Review extension
-rw-r--r-- | extensions/Review/Extension.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm index f05f2ba8b..967679eed 100644 --- a/extensions/Review/Extension.pm +++ b/extensions/Review/Extension.pm @@ -287,7 +287,9 @@ sub object_columns { push @$columns, 'reviewer_required'; } elsif ($class->isa('Bugzilla::User')) { - push @$columns, qw(review_request_count feedback_request_count needinfo_request_count); + 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; } } |