TT#157700 fix invoice svg rendering broken for 1st detailspage

Change-Id: I5c1b4b286236931d62b01eb6ed7b5f8b21fb1731
mr10.3
Rene Krenn 4 years ago
parent 35b568dde4
commit f3f473ba8d

@ -128,6 +128,9 @@ sub sanitize_svg {
}
#we do here nothing against TemplateToolkit code invasion - is it correct?
$$svg_ref = ($xp->findnodes('/'))[0]->toString();
$$svg_ref =~ s/class="page layer"/class="page"/gi;
return 1;
}
@ -158,7 +161,7 @@ sub get_tt {
sub svg_content{
my ($c, $content) = @_;
if(!$content) {
unless ($content) {
#default is the same for all - I would like to move it as something constant to itils
my $default = 'invoice/default/invoice_template_svg.tt';
my $t = NGCP::Panel::Utils::InvoiceTemplate::get_tt();

Loading…
Cancel
Save