summaryrefslogtreecommitdiffstats
path: root/extensions/RestrictComments
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-08 21:19:01 +0200
committerGitHub <noreply@github.com>2018-04-08 21:19:01 +0200
commite8f272c6f79dc8a919911d88a5b455bc67792f64 (patch)
tree01f8cd3965e1db810573f65508ded737d86d82fd /extensions/RestrictComments
parent3293a1f85c9e20893e6823d1f83b667ec9ca9534 (diff)
downloadbugzilla-e8f272c6f79dc8a919911d88a5b455bc67792f64.tar.gz
bugzilla-e8f272c6f79dc8a919911d88a5b455bc67792f64.tar.xz
Bug 1427884 - Add upgrade tests from 4.2 to Harmony on mysql
Diffstat (limited to 'extensions/RestrictComments')
-rw-r--r--extensions/RestrictComments/Extension.pm4
1 files changed, 3 insertions, 1 deletions
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';
+ }
}
}