mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 01:41:14 -06:00
Fix #4338
This commit is contained in:
parent
08fcff2a98
commit
e441df367d
@ -37,8 +37,7 @@ use Log;
|
||||
*/
|
||||
class RecurrenceController extends Controller
|
||||
{
|
||||
/** @var RecurringRepositoryInterface The recurring repository. */
|
||||
private $recurring;
|
||||
private RecurringRepositoryInterface $recurring;
|
||||
|
||||
/**
|
||||
* RecurrenceController constructor.
|
||||
@ -97,12 +96,14 @@ class RecurrenceController extends Controller
|
||||
if ('yearly' === $repetitionType) {
|
||||
$repetitionMoment = explode(',', $request->get('type'))[1] ?? '2018-01-01';
|
||||
}
|
||||
$actualStart->startOfDay();
|
||||
$repetition = new RecurrenceRepetition;
|
||||
$repetition->repetition_type = $repetitionType;
|
||||
$repetition->repetition_moment = $repetitionMoment;
|
||||
$repetition->repetition_skip = (int) $request->get('skip');
|
||||
$repetition->weekend = (int) $request->get('weekend');
|
||||
$actualEnd = clone $end;
|
||||
|
||||
switch ($endsAt) {
|
||||
default:
|
||||
case 'forever':
|
||||
|
Loading…
Reference in New Issue
Block a user