mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Fix decrypt exception.
This commit is contained in:
@@ -265,14 +265,6 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
|
|||||||
{
|
{
|
||||||
$transactions = $this->getExpenses()->sortBy('transaction_amount');
|
$transactions = $this->getExpenses()->sortBy('transaction_amount');
|
||||||
|
|
||||||
$transactions = $transactions->each(
|
|
||||||
function (Transaction $transaction) {
|
|
||||||
if (intval($transaction->opposing_account_encrypted) === 1) {
|
|
||||||
$transaction->opposing_account_name = Crypt::decrypt($transaction->opposing_account_name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
return $transactions;
|
return $transactions;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -283,14 +275,6 @@ class MonthReportGenerator extends Support implements ReportGeneratorInterface
|
|||||||
{
|
{
|
||||||
$transactions = $this->getIncome()->sortByDesc('transaction_amount');
|
$transactions = $this->getIncome()->sortByDesc('transaction_amount');
|
||||||
|
|
||||||
$transactions = $transactions->each(
|
|
||||||
function (Transaction $transaction) {
|
|
||||||
if (intval($transaction->opposing_account_encrypted) === 1) {
|
|
||||||
$transaction->opposing_account_name = Crypt::decrypt($transaction->opposing_account_name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
return $transactions;
|
return $transactions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user