mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Wrap @foreach in conditional
If $invoiceLabels was not set, an invalid argument error was being thrown on the page “/company/advanced_settings/invoice_design”
This commit is contained in:
parent
9ffcf9f3ef
commit
3014a22849
@ -85,9 +85,11 @@
|
|||||||
{!! Former::populate($account) !!}
|
{!! Former::populate($account) !!}
|
||||||
{!! Former::populateField('hide_quantity', intval($account->hide_quantity)) !!}
|
{!! Former::populateField('hide_quantity', intval($account->hide_quantity)) !!}
|
||||||
{!! Former::populateField('hide_paid_to_date', intval($account->hide_paid_to_date)) !!}
|
{!! Former::populateField('hide_paid_to_date', intval($account->hide_paid_to_date)) !!}
|
||||||
|
@if ($invoiceLabels)
|
||||||
@foreach ($invoiceLabels as $field => $value)
|
@foreach ($invoiceLabels as $field => $value)
|
||||||
{!! Former::populateField("labels_{$field}", $value) !!}
|
{!! Former::populateField("labels_{$field}", $value) !!}
|
||||||
@endforeach
|
@endforeach
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user