diff --git a/share/templates/customer/invoice.tt b/share/templates/customer/invoice.tt index a799d5af07..8c314bb14f 100644 --- a/share/templates/customer/invoice.tt +++ b/share/templates/customer/invoice.tt @@ -19,11 +19,11 @@
@@ -287,7 +258,7 @@ function saveTemplate( contract_id, tt_id ) { [% c.loc('Refresh Preview')%] @@ -303,7 +274,7 @@ function saveTemplate( contract_id, tt_id ) { tt_viewmode: 'raw', tt_sourcestate: '[%initial%]', contract_id: '[%contract.id%]', - tt_id: $('form[name=invoice_template] input[name=tt_id]').val() + tt_id: getTtIdVal(), });" width="550px" height="750px" style="border-width:0px;"> diff --git a/share/templates/customer/invoice_template_list.tt b/share/templates/customer/invoice_template_list.tt index 537ab220fb..df05f194cd 100644 --- a/share/templates/customer/invoice_template_list.tt +++ b/share/templates/customer/invoice_template_list.tt @@ -33,7 +33,7 @@ [% template.get_column('is_active') %] [% template.get_column('type') %] - =[%template.get_column('id')%]:[%- c.uri_for_action("/customer/invoice_template_delete", [contract.id, template.get_column('id')]) -%]= [%# template.get_column('name') %] + =[%- c.uri_for_action("/customer/invoice_template_delete", [contract.id, template.get_column('id')]) -%]= [%# template.get_column('name') %]