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

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