Nicht abgfangene Typenkonvertierung in ca.pl
[kivitendo-erp.git] / bin / mozilla / do.pl
index a43da17..fd8482b 100644 (file)
@@ -48,12 +48,12 @@ require "bin/mozilla/reportgenerator.pl";
 
 use strict;
 
+my $print_post;
+
 1;
 
 # end of main
 
-my $print_post;
-
 sub check_do_access {
   $main::auth->assert($main::form->{type} . '_edit');
 }
@@ -725,7 +725,8 @@ sub invoice {
   $form->{type} = "invoice";
 
   # locale messages
-  $locale = new Locale "$myconfig{countrycode}", "$script";
+  $main::locale = new Locale "$myconfig{countrycode}", "$script";
+  $locale = $main::locale;
 
   require "bin/mozilla/$form->{script}";