From 5bae89dcbdae78c18ef588d629f74ec06ae93c7a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 1 Feb 2017 13:32:07 +0200 Subject: [PATCH] Fix label for custom field with blank label --- resources/views/invoices/edit.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 094de292fd00..1077001cc728 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)