]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/io.pl
Kosmetik: Templatenamen in Fehlermeldung nicht doppelt ausgeben
[kivitendo-erp.git] / bin / mozilla / io.pl
index 022f039ee5106dda5168e6c3bcda2cbbfed544a3..c44b525a2ca8a639e908e8e20b4b6ddb4406dca4 100644 (file)
@@ -38,6 +38,7 @@
 
 use Carp;
 use CGI;
+use List::MoreUtils qw(uniq);
 use List::Util qw(min max first);
 
 use SL::CVar;
@@ -1504,6 +1505,7 @@ sub print_form {
   push @template_files, "$form->{formname}$form->{language}$printer_code.$extension";
   push @template_files, "$form->{formname}.$extension";
   push @template_files, "default.$extension";
+  @template_files = uniq @template_files;
 
   $form->{IN} = undef;
   for my $filename (@template_files) {