Fix old bug.

This commit is contained in:
James Cole
2016-04-18 19:55:48 +02:00
parent a6f3e61520
commit 4b80e46d26
2 changed files with 9 additions and 1 deletions

View File

@@ -63,7 +63,14 @@
</div>
<div class="box-body">
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
{{ ExpandedForm.select('budget_id',budgets,0) }}
{% if budgets|length > 0 %}
{{ ExpandedForm.select('budget_id',budgets,0) }}
{% else %}
{{ ExpandedForm.select('budget_id',budgets,0, {helpText: trans('firefly.no_budget_pointer')}) }}
{% endif %}
<!-- CATEGORY ALWAYS -->
{{ ExpandedForm.text('category') }}