PeriodicInvoices: korrekter Fallback, wenn kein email Template gesetzt ist.
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 19 Jun 2014 09:36:30 +0000 (11:36 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 19 Jun 2014 10:03:25 +0000 (12:03 +0200)
SL/BackgroundJob/CreatePeriodicInvoices.pm

index 1e55ef9..18abf7c 100644 (file)
@@ -213,7 +213,7 @@ sub _send_email {
   return unless $template;
 
   my $email_template = $config{periodic_invoices}->{email_template};
-  my $filename       = $email_template || ( (SL::DB::Default->get->templates || "templates/webpages") . "/periodic_invoices_email.txt" );
+  my $filename       = $email_template || ( (SL::DB::Default->get->templates || "templates/webpages") . "/oe/periodic_invoices_email.txt" );
   my %params         = ( POSTED_INVOICES  => $posted_invoices,
                          PRINTED_INVOICES => $printed_invoices );