diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 094de292fd..1077001cc7 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -172,7 +172,7 @@ @endif @if ($account->showCustomField('custom_invoice_text_label1', $invoice)) - {!! Former::text('custom_text_value1')->label($account->custom_invoice_text_label1)->data_bind("value: custom_text_value1, valueUpdate: 'afterkeydown'") !!} + {!! Former::text('custom_text_value1')->label($account->custom_invoice_text_label1 ?: ' ')->data_bind("value: custom_text_value1, valueUpdate: 'afterkeydown'") !!} @endif @@ -219,7 +219,7 @@ ) !!} @if ($account->showCustomField('custom_invoice_text_label2', $invoice)) - {!! Former::text('custom_text_value2')->label($account->custom_invoice_text_label2)->data_bind("value: custom_text_value2, valueUpdate: 'afterkeydown'") !!} + {!! Former::text('custom_text_value2')->label($account->custom_invoice_text_label2 ?: ' ')->data_bind("value: custom_text_value2, valueUpdate: 'afterkeydown'") !!} @endif @if ($entityType == ENTITY_INVOICE)