mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 02:18:20 +00:00
Possible fix for #5869
This commit is contained in:
@@ -66,7 +66,7 @@ class SetDestinationAccount implements ActionInterface
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$type = $object->transactionType->type;
|
||||||
$this->repository->setUser($user);
|
$this->repository->setUser($user);
|
||||||
|
|
||||||
// if this is a transfer or a deposit, the new destination account must be an asset account or a default account, and it MUST exist:
|
// if this is a transfer or a deposit, the new destination account must be an asset account or a default account, and it MUST exist:
|
||||||
|
@@ -60,13 +60,12 @@ class SetSourceAccount implements ActionInterface
|
|||||||
/** @var TransactionJournal|null $object */
|
/** @var TransactionJournal|null $object */
|
||||||
$object = $user->transactionJournals()->find((int) $journal['transaction_journal_id']);
|
$object = $user->transactionJournals()->find((int) $journal['transaction_journal_id']);
|
||||||
$this->repository = app(AccountRepositoryInterface::class);
|
$this->repository = app(AccountRepositoryInterface::class);
|
||||||
|
|
||||||
if (null === $object) {
|
if (null === $object) {
|
||||||
Log::error('Could not find journal.');
|
Log::error('Could not find journal.');
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$type = $object->transactionType->type;
|
||||||
$this->repository->setUser($user);
|
$this->repository->setUser($user);
|
||||||
|
|
||||||
// if this is a transfer or a withdrawal, the new source account must be an asset account or a default account, and it MUST exist:
|
// if this is a transfer or a withdrawal, the new source account must be an asset account or a default account, and it MUST exist:
|
||||||
|
Reference in New Issue
Block a user