From 392fd537cb509a5b4dcb3c953397591ca9a1cc36 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Mar 2015 13:07:33 +0200 Subject: [PATCH] Fixed issue if there are line breaks in the account invoice terms --- app/views/invoices/edit.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/invoices/edit.blade.php b/app/views/invoices/edit.blade.php index 93a6e3da8f7a..c94c0930dfbd 100755 --- a/app/views/invoices/edit.blade.php +++ b/app/views/invoices/edit.blade.php @@ -673,10 +673,10 @@ invoice.contact = _.findWhere(invoice.client.contacts, {send_invoice: true}); 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) { - 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()))