Letter: is_sales nicht in init_letter clobbern
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 8 Aug 2016 14:05:10 +0000 (16:05 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 8 Aug 2016 14:08:36 +0000 (16:08 +0200)
SL/Controller/Letter.pm

index 3d704b8..25c11f7 100644 (file)
@@ -577,7 +577,7 @@ sub init_letter {
 #     ));
   }
 
-  $self->is_sales($letter->is_sales);
+  $self->is_sales($letter->is_sales) if $letter->id;
 
   $letter;
 }