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/RestrictComments/Extension.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions/RestrictComments') diff --git a/extensions/RestrictComments/Extension.pm b/extensions/RestrictComments/Extension.pm index 213a1c44a..e93540d5a 100644 --- a/extensions/RestrictComments/Extension.pm +++ b/extensions/RestrictComments/Extension.pm @@ -68,7 +68,9 @@ sub object_columns { my ($self, $args) = @_; my ($class, $columns) = @$args{qw(class columns)}; if ($class->isa('Bugzilla::Bug')) { - push(@$columns, 'restrict_comments'); + if (Bugzilla->dbh->bz_column_info($class->DB_TABLE, 'restrict_comments')) { + push @$columns, 'restrict_comments'; + } } } -- cgit v1.2.3-24-g4f1b