summaryrefslogtreecommitdiffstats
path: root/extensions/EditComments
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/EditComments
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/EditComments')
-rw-r--r--extensions/EditComments/Extension.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/EditComments/Extension.pm b/extensions/EditComments/Extension.pm
index ab19ab6e7..e2ace3f23 100644
--- a/extensions/EditComments/Extension.pm
+++ b/extensions/EditComments/Extension.pm
@@ -191,7 +191,9 @@ sub object_columns {
my ($self, $args) = @_;
my ($class, $columns) = @$args{qw(class columns)};
if ($class->isa('Bugzilla::Comment')) {
- push(@$columns, 'edit_count');
+ if (Bugzilla->dbh->bz_column_info($class->DB_TABLE, 'edit_count')) {
+ push @$columns, 'edit_count';
+ }
}
}