From: lpsolit%gmail.com <> Date: Tue, 22 Aug 2006 04:39:53 +0000 (+0000) Subject: Bug 349363: DB::bz_add_column() shouldn't print anything when called from editfields... X-Git-Tag: bugzilla-2.23.3~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb6d45d570dd22c1219b02c36ba08d235912d4d;p=thirdparty%2Fbugzilla.git Bug 349363: DB::bz_add_column() shouldn't print anything when called from editfields.cgi - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 2706f1b401..71669b7146 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); }