diff options
| author | Mark Wells <mark@freeside.biz> | 2015-02-24 23:02:22 -0800 | 
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-02-24 23:02:22 -0800 | 
| commit | 742c6070eff7d8f3cce6901ba25c2665b9ddd938 (patch) | |
| tree | 90056efac9739a5f7cb6d32ae2229a65327bdee3 | |
| parent | 18052ce1e0699474a6ac133dacf314e9c10149b7 (diff) | |
fix a problem running "letter" events more than once in a process, #32603
| -rw-r--r-- | FS/FS/msg_template.pm | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm index 83d037804..cb13696a5 100644 --- a/FS/FS/msg_template.pm +++ b/FS/FS/msg_template.pm @@ -462,9 +462,11 @@ sub render {    # Graphics/stylesheets should probably go in /var/www on the Freeside     # machine. +  my $script_path = `/usr/bin/which freeside-wkhtmltopdf`; +  chomp $script_path;    my $kit = PDF::WebKit->new(\$html); #%options    # hack to use our wrapper script -  $kit->configure(sub { shift->wkhtmltopdf('freeside-wkhtmltopdf') }); +  $kit->configure(sub { shift->wkhtmltopdf($script_path) });    $kit->to_pdf;  }  | 
