mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-16 22:58:09 +00:00
Fix issues with #1521
This commit is contained in:
@@ -151,6 +151,10 @@ class SingleController extends Controller
|
||||
$optionalFields = Preferences::get('transaction_journal_optional_fields', [])->data;
|
||||
$source = (int)$request->get('source');
|
||||
|
||||
// grab old currency ID from old data:
|
||||
$currencyID = (int)$request->old('amount_currency_id_amount');
|
||||
$preFilled['amount_currency_id_amount'] = $currencyID;
|
||||
|
||||
if (($what === 'withdrawal' || $what === 'transfer') && $source > 0) {
|
||||
$preFilled['source_id'] = $source;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user