Merge pull request #662 from gradido/community_fix_661

exchange positions of decay in transaction in old frontend
This commit is contained in:
einhornimmond 2021-07-22 12:08:22 +02:00 committed by GitHub
commit 2e7f6fa420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,12 +113,12 @@ class StateBalancesController extends AppController
if($stateUserTransactionsQuery->count() > 0) {
$transactions_with_decay = $transactionsTable->listTransactionsHumanReadable($stateUserTransactionsQuery->toArray(), $user, $decay);
foreach($transactions_with_decay as $tr) {
$transactions[] = $tr;
if(isset($tr['decay'])) {
$tr['decay']['type'] = 'decay';
$tr['decay']['memo'] = '';
$transactions[] = $tr['decay'];
}
$transactions[] = $tr;
}
}