mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make sure notes always have a value, even when null #3823
This commit is contained in:
parent
1624abd9ed
commit
d97fd73ce5
@ -122,7 +122,7 @@
|
||||
<h3 class="box-title">{{ 'notes'|_ }}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{{ account.notes.first.text|markdown }}
|
||||
{{ account.notes.first.text|default('')|markdown }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -110,7 +110,7 @@
|
||||
<h3 class="box-title">{{ 'notes'|_ }}</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
{{ object.data.notes|markdown }}
|
||||
{{ object.data.notes|default('')|markdown }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -28,7 +28,7 @@
|
||||
</a>
|
||||
({{ attachment.size|filesize }})
|
||||
{% if null != attachment.notes and '' != attachment.notes %}
|
||||
{{ attachment.notes|markdown }}
|
||||
{{ attachment.notes|default('')|markdown }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if not attachment.file_exists %}
|
||||
|
@ -111,7 +111,7 @@
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('form.notes') }}</h3>
|
||||
</div>
|
||||
<div class="box-body markdown">{{ piggy.notes|markdown }}
|
||||
<div class="box-body markdown">{{ piggy.notes|default('')|markdown }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -115,7 +115,7 @@
|
||||
{% if not rule.active %}
|
||||
class="text-muted"
|
||||
{% endif %}
|
||||
><br/>{{ rule.description|markdown }}</small>
|
||||
><br/>{{ rule.description|default('')|markdown }}</small>
|
||||
{% endif %}
|
||||
<small><br />{% if rule.strict %}<span class="text-danger">{{ 'rule_is_strict'|_ }}</span>{% else %}<span class="text-success">{{ 'rule_is_not_strict'|_ }}</span>{% endif %}</small>
|
||||
</td>
|
||||
|
@ -311,7 +311,7 @@
|
||||
{% if null != journal.notes and '' != journal.notes %}
|
||||
<tr>
|
||||
<td>{{ trans('list.notes') }}</td>
|
||||
<td class="markdown">{{ journal.notes|markdown }}</td>
|
||||
<td class="markdown">{{ journal.notes|default('')|markdown }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if journalHasMeta(journal.transaction_journal_id, 'recurring_total') and journalHasMeta(journal.transaction_journal_id, 'recurring_count') %}
|
||||
|
Loading…
Reference in New Issue
Block a user