fix missing plaintext invoice alternative, RT#81486
authorIvan Kohler <ivan@freeside.biz>
Mon, 29 Oct 2018 14:53:44 +0000 (07:53 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 29 Oct 2018 14:53:44 +0000 (07:53 -0700)
FS/FS/Template_Mixin.pm

index b22748a..1499993 100644 (file)
@@ -2246,7 +2246,7 @@ sub generate_email {
 
   if (!@text) {
 
-    if ( $conf->config($tc.'template') ) {
+    if ( $conf->exists($tc.'template') ) {
 
       warn "$me generating plain text invoice"
         if $DEBUG;