1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Add check for invoice_design_id

This commit is contained in:
Hillel Coren 2017-06-26 11:20:01 +03:00
parent 6e757a6a6d
commit f965173a86

View File

@ -385,6 +385,10 @@ class InvoiceRepository extends BaseRepository
$invoice->fill($data);
if (! $invoice->invoice_design_id) {
$invoice->invoice_design_id = 1;
}
if ((isset($data['set_default_terms']) && $data['set_default_terms'])
|| (isset($data['set_default_footer']) && $data['set_default_footer'])) {
if (isset($data['set_default_terms']) && $data['set_default_terms']) {