mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 03:08:11 +00:00
Fixed a bug where deposits and/or transfers would be assigned budgets if you had selected a budget at the withdrawal screen earlier.
This commit is contained in:
@@ -260,6 +260,12 @@ class TransactionController extends Controller
|
|||||||
{
|
{
|
||||||
|
|
||||||
$journalData = $request->getJournalData();
|
$journalData = $request->getJournalData();
|
||||||
|
|
||||||
|
// if not withdrawal, unset budgetid.
|
||||||
|
if($journalData['what'] != 'withdrawal') {
|
||||||
|
$journalData['budget_id'] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
$journal = $repository->store($journalData);
|
$journal = $repository->store($journalData);
|
||||||
|
|
||||||
// rescan journal, UpdateJournalConnection
|
// rescan journal, UpdateJournalConnection
|
||||||
|
Reference in New Issue
Block a user