]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 349363: DB::bz_add_column() shouldn't print anything when called from editfields...
authorlpsolit%gmail.com <>
Tue, 22 Aug 2006 04:39:53 +0000 (04:39 +0000)
committerlpsolit%gmail.com <>
Tue, 22 Aug 2006 04:39:53 +0000 (04:39 +0000)
Bugzilla/DB.pm

index 2706f1b40108a9c0064860535946ea78a8a5f559..71669b7146b121663c421b0c3f6ffd7f86374765 100644 (file)
@@ -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);
         }