Decrypt object names. [skip ci]

This commit is contained in:
James Cole 2017-12-10 20:05:56 +01:00
parent 0c529cb7e7
commit 4a1e4bb821
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -385,6 +385,9 @@ class ExpenseController extends Controller
$budgetName = $transaction->transaction_journal_budget_name;
$budgetId = intval($transaction->transaction_journal_budget_id);
}
if ($budgetId !== 0) {
$budgetName = app('steam')->tryDecrypt($budgetName);
}
// if not set, set to zero:
if (!isset($sum[$budgetId][$currencyId])) {
@ -434,6 +437,9 @@ class ExpenseController extends Controller
$categoryName = $transaction->transaction_journal_category_name;
$categoryId = intval($transaction->transaction_journal_category_id);
}
if ($categoryId !== 0) {
$categoryName = app('steam')->tryDecrypt($categoryName);
}
// if not set, set to zero:
if (!isset($sum[$categoryId][$currencyId])) {