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