summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-08-22 06:39:53 +0200
committerlpsolit%gmail.com <>2006-08-22 06:39:53 +0200
commitfcb6d45d570dd22c1219b02c36ba08d235912d4d (patch)
tree7f47984627c1845fc28901417bd8bf2854d695d7
parent1271f8d95c86c189a3b66ce8247f69682177ea14 (diff)
downloadbugzilla-fcb6d45d570dd22c1219b02c36ba08d235912d4d.tar.gz
bugzilla-fcb6d45d570dd22c1219b02c36ba08d235912d4d.tar.xz
Bug 349363: DB::bz_add_column() shouldn't print anything when called from editfields.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
-rw-r--r--Bugzilla/DB.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index 2706f1b40..71669b714 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -435,7 +435,8 @@ sub bz_add_column {
my @statements = $self->_bz_real_schema->get_add_column_ddl(
$table, $name, $new_def,
defined $init_value ? $self->quote($init_value) : undef);
- print "Adding new column $name to table $table ...\n";
+ print "Adding new column $name to table $table ...\n"
+ unless i_am_cgi();
foreach my $sql (@statements) {
$self->do($sql);
}