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:
James Cole
2015-07-17 21:03:13 +02:00
parent ce5beeaf2c
commit 14b79cb0a4

View File

@@ -260,6 +260,12 @@ class TransactionController extends Controller
{
$journalData = $request->getJournalData();
// if not withdrawal, unset budgetid.
if($journalData['what'] != 'withdrawal') {
$journalData['budget_id'] = 0;
}
$journal = $repository->store($journalData);
// rescan journal, UpdateJournalConnection