summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-08 17:50:28 +0200
committerDylan William Hardison <dylan@hardison.net>2018-04-08 17:51:05 +0200
commitf6013b2b6a26a23c6d06c1ee6748bc4515e83903 (patch)
tree82c8464c4003f92161d77b6e3a43f5613c6b8f80 /extensions
parentb0935c1e52eea1dfc70652bf6fcb7c8b856a8826 (diff)
downloadbugzilla-f6013b2b6a26a23c6d06c1ee6748bc4515e83903.tar.gz
bugzilla-f6013b2b6a26a23c6d06c1ee6748bc4515e83903.tar.xz
fix secure_mail error during checksetup: ignore secure_mail column if not added to schema yet
Diffstat (limited to 'extensions')
-rw-r--r--extensions/SecureMail/Extension.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/SecureMail/Extension.pm b/extensions/SecureMail/Extension.pm
index d684b5a39..b05dc97f6 100644
--- a/extensions/SecureMail/Extension.pm
+++ b/extensions/SecureMail/Extension.pm
@@ -102,7 +102,10 @@ sub object_columns {
my $columns = $args->{'columns'};
if ($class->isa('Bugzilla::Group')) {
- push(@$columns, 'secure_mail');
+ my $dbh = Bugzilla->dbh;
+ if ($dbh->bz_column_info(Bugzilla::Group->DB_TABLE, 'securemail')) {
+ push @$columns, 'secure_mail';
+ }
}
}