mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #2536
This commit is contained in:
parent
5d192ad4c2
commit
a29e78ed44
@ -164,13 +164,14 @@ class IndexController extends Controller
|
||||
|
||||
/** @var BudgetLimit $limit */
|
||||
foreach ($budgetLimits as $limit) {
|
||||
$currency = $limit->transactionCurrency ?? $defaultCurrency;
|
||||
$array['budgeted'][] = [
|
||||
'id' => $limit->id,
|
||||
'amount' => $limit->amount,
|
||||
'currency_id' => $limit->transactionCurrency->id,
|
||||
'currency_symbol' => $limit->transactionCurrency->symbol,
|
||||
'currency_name' => $limit->transactionCurrency->name,
|
||||
'currency_decimal_places' => $limit->transactionCurrency->decimal_places,
|
||||
'currency_id' => $currency->id,
|
||||
'currency_symbol' => $currency->symbol,
|
||||
'currency_name' => $currency->name,
|
||||
'currency_decimal_places' => $currency->decimal_places,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if budgets.count == 0 and inactive.count == 0 %}
|
||||
{% if budgets|length == 0 and inactive.count == 0 %}
|
||||
{% include 'partials.empty' with {objectType: 'default', type: 'budgets',route: route('budgets.create')} %}
|
||||
{# make FF ignore demo for now. #}
|
||||
{% set shownDemo = true %}
|
||||
|
Loading…
Reference in New Issue
Block a user