diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-03-11 02:17:13 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-03-11 02:17:13 -0700 |
commit | 627b53dd54c81b8bf16bf4c6b53184a0b76011a8 (patch) | |
tree | d015777e81a5fea3379345220cfe6672e2553d0b /FS/FS/Template_Mixin.pm | |
parent | 53a1130923c4905b267239c369949aadde657c7c (diff) |
fix quotations, RT#21103
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r-- | FS/FS/Template_Mixin.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 2a325349d..7d8135daf 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -122,7 +122,9 @@ sub print_latex { UNLINK => 0, ) or die "can't open temp file: $!\n"; - my $agentnum = $self->cust_main->agentnum; + my $cust_main = $self->cust_main; + my $prospect_main = $self->prospect_main; + my $agentnum = $cust_main ? $cust_main->agentnum : $prospect_main->agentnum; if ( $template && $conf->exists("logo_${template}.eps", $agentnum) ) { print $lh $conf->config_binary("logo_${template}.eps", $agentnum) |