mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix in year list.
This commit is contained in:
@@ -119,6 +119,9 @@ class ReportHelper implements ReportHelperInterface
|
|||||||
$years[] = $start->format('Y');
|
$years[] = $start->format('Y');
|
||||||
$start->addYear();
|
$start->addYear();
|
||||||
}
|
}
|
||||||
|
$years[] = Carbon::now()->format('Y');
|
||||||
|
// force the current year.
|
||||||
|
$years = array_unique($years);
|
||||||
|
|
||||||
return $years;
|
return $years;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user