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:
parent
6e757a6a6d
commit
f965173a86
@ -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']) {
|
||||
|
Loading…
Reference in New Issue
Block a user