mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix missing first_date
This commit is contained in:
parent
ef852ef963
commit
6d979a68f2
@ -132,15 +132,15 @@ class EditController extends Controller
|
|||||||
RecurrenceRepetition::WEEKEND_TO_MONDAY => (string)trans('firefly.jump_to_monday'),
|
RecurrenceRepetition::WEEKEND_TO_MONDAY => (string)trans('firefly.jump_to_monday'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$hasOldInput = null !== $request->old('_token');
|
$hasOldInput = null !== $request->old('_token');
|
||||||
$preFilled = [
|
$preFilled = [
|
||||||
'transaction_type' => strtolower($recurrence->transactionType->type),
|
'transaction_type' => strtolower($recurrence->transactionType->type),
|
||||||
'active' => $hasOldInput ? (bool)$request->old('active') : $recurrence->active,
|
'active' => $hasOldInput ? (bool)$request->old('active') : $recurrence->active,
|
||||||
'apply_rules' => $hasOldInput ? (bool)$request->old('apply_rules') : $recurrence->apply_rules,
|
'apply_rules' => $hasOldInput ? (bool)$request->old('apply_rules') : $recurrence->apply_rules,
|
||||||
'deposit_source_id' => $array['transactions'][0]['source_id'],
|
'deposit_source_id' => $array['transactions'][0]['source_id'],
|
||||||
'withdrawal_destination_id' => $array['transactions'][0]['destination_id'],
|
'withdrawal_destination_id' => $array['transactions'][0]['destination_id'],
|
||||||
];
|
];
|
||||||
|
$array['first_date'] = substr($array['first_date'], 0, 10);
|
||||||
$array['transactions'][0]['tags'] = implode(',', $array['transactions'][0]['tags'] ?? []);
|
$array['transactions'][0]['tags'] = implode(',', $array['transactions'][0]['tags'] ?? []);
|
||||||
|
|
||||||
return prefixView(
|
return prefixView(
|
||||||
|
Loading…
Reference in New Issue
Block a user