Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit c696df3

Browse files
SORMAS-Foundation#3354 - Fixed wrong comparison calculation for this year
1 parent 19f3ab6 commit c696df3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/dashboard/DashboardFilterLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ private void setDateFilter(Date from, Date to) {
515515
}
516516

517517
private void updateComparisonDates() {
518-
if (activeComparisonButton == btnPeriodBefore) {
518+
if (currentDateFilterType != DateFilterType.THIS_YEAR && activeComparisonButton == btnPeriodBefore) {
519519
int activePeriodLength = currentDateFilterType == DateFilterType.THIS_WEEK
520520
? 7
521521
: DateHelper.getDaysBetween(dashboardDataProvider.getFromDate(), dashboardDataProvider.getToDate());

0 commit comments

Comments
 (0)