]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/ReportGenerator.pm
Fehler beim Laden von Buchungen, wenn Konto nicht mit einer Steuer verknüpft ist
[kivitendo-erp.git] / SL / ReportGenerator.pm
index cdcf18fabf782b1ed376790e7db7b2b4653acf1c..b02ab35ef7d093abb0ae5f16f3540419be9a5739 100644 (file)
@@ -48,9 +48,11 @@ sub new {
 
   $self->{data_present} = 0;
 
 
   $self->{data_present} = 0;
 
+  bless $self, $type;
+
   $self->set_options(@_) if (@_);
 
   $self->set_options(@_) if (@_);
 
-  return bless $self, $type;
+  return $self;
 }
 
 sub set_columns {
 }
 
 sub set_columns {
@@ -229,7 +231,7 @@ sub get_visible_columns {
   my $self   = shift;
   my $format = shift;
 
   my $self   = shift;
   my $format = shift;
 
-  return grep { my $c = $self->{columns}->{$_}; $c && $c->{visible} && (($c->{visible} == 1) || ($c->{visible} =~ /${format}/i)) } @{ $self->{column_order} };
+  return grep { my $c = $self->{columns}->{$_}; $c && $c->{visible} && (($c->{visible} == 1) || ($c->{visible} =~ /\Q${format}\E/i)) } @{ $self->{column_order} };
 }
 
 sub html_format {
 }
 
 sub html_format {