mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed issue if there are line breaks in the account invoice terms
This commit is contained in:
parent
3e55f43270
commit
392fd537cb
@ -673,10 +673,10 @@
|
|||||||
invoice.contact = _.findWhere(invoice.client.contacts, {send_invoice: true});
|
invoice.contact = _.findWhere(invoice.client.contacts, {send_invoice: true});
|
||||||
|
|
||||||
if (!invoice.terms) {
|
if (!invoice.terms) {
|
||||||
invoice.terms = "{{ $account->invoice_terms }}";
|
invoice.terms = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_terms)) }}";
|
||||||
}
|
}
|
||||||
if (!invoice.invoice_footer) {
|
if (!invoice.invoice_footer) {
|
||||||
invoice.invoice_footer = "{{ $account->invoice_footer }}";
|
invoice.invoice_footer = "{{ str_replace(["\r\n","\r","\n"], '\n', addslashes($account->invoice_footer)) }}";
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (file_exists($account->getLogoPath()))
|
@if (file_exists($account->getLogoPath()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user