mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code cleanup should trigger scan.
This commit is contained in:
@@ -107,17 +107,16 @@ class RecurrenceController extends Controller
|
||||
$repetition->weekend = (int)$request->get('weekend');
|
||||
$actualEnd = clone $end;
|
||||
|
||||
if('until_date' === $endsAt) {
|
||||
if ('until_date' === $endsAt) {
|
||||
$actualEnd = $endDate ?? clone $end;
|
||||
$occurrences = $this->recurring->getOccurrencesInRange($repetition, $actualStart, $actualEnd);
|
||||
}
|
||||
if('times' === $endsAt) {
|
||||
if ('times' === $endsAt) {
|
||||
$occurrences = $this->recurring->getXOccurrences($repetition, $actualStart, $repetitions);
|
||||
}
|
||||
if('times' !== $endsAt && 'until_date' !== $endsAt) {
|
||||
if ('times' !== $endsAt && 'until_date' !== $endsAt) {
|
||||
// 'forever'
|
||||
$occurrences = $this->recurring->getOccurrencesInRange($repetition, $actualStart, $actualEnd);
|
||||
|
||||
}
|
||||
|
||||
/** @var Carbon $current */
|
||||
|
Reference in New Issue
Block a user