[freeside-commits] branch master updated. 4f0250a76508176cdf5336c199c883a3912f5274
Mark Wells
mark at 420.am
Tue Feb 24 23:02:53 PST 2015
The branch, master has been updated
via 4f0250a76508176cdf5336c199c883a3912f5274 (commit)
from bfb8e58521f177b8a2bec22706dff7dd8b114208 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4f0250a76508176cdf5336c199c883a3912f5274
Author: Mark Wells <mark at freeside.biz>
Date: Tue Feb 24 23:02:08 2015 -0800
fix a problem running "letter" events more than once in a process, #32603
diff --git a/FS/FS/msg_template.pm b/FS/FS/msg_template.pm
index 9599e4f..c52b633 100644
--- a/FS/FS/msg_template.pm
+++ b/FS/FS/msg_template.pm
@@ -467,9 +467,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;
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/msg_template.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list