mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-28 03:34:32 -06:00
Small fix in journal handler.
This commit is contained in:
parent
3344bb7263
commit
36f3eb8b2f
@ -464,7 +464,7 @@ class TransactionController extends Controller
|
||||
Session::flash('info', $att->getMessages()->get('attachments'));
|
||||
}
|
||||
|
||||
event(new TransactionJournalStored($journal, intval($request->get('piggy_bank_id'))));
|
||||
event(new TransactionJournalStored($journal, intval($journalData['piggy_bank_id'])));
|
||||
|
||||
Session::flash('success', strval(trans('firefly.stored_journal', ['description' => e($journal->description)])));
|
||||
Preferences::mark();
|
||||
|
@ -51,6 +51,7 @@ class JournalFormRequest extends Request
|
||||
'budget_id' => intval($this->get('budget_id')),
|
||||
'category' => $this->get('category') ?? '',
|
||||
'tags' => explode(',', $tags),
|
||||
'piggy_bank_id' => $this->get('piggy_bank_id') ? intval($this->get('piggy_bank_id')) : 0,
|
||||
];
|
||||
}
|
||||
|
||||
@ -71,7 +72,7 @@ class JournalFormRequest extends Request
|
||||
'interest_date' => 'date',
|
||||
'category' => 'between:1,255',
|
||||
'amount_currency_id_amount' => 'required|exists:transaction_currencies,id',
|
||||
|
||||
'piggy_bank_id' => 'numeric',
|
||||
];
|
||||
|
||||
switch ($what) {
|
||||
|
Loading…
Reference in New Issue
Block a user