Bug #1607: Fix issue filtering the resources load window

The issue was introduced in commit 05132fd5a7.
Where it was defined an algorithm:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is between FSD and FED

This was wrong, it should be:
  2.4) FSD is not null and FED is not null:
    2.4.1) APED is null: Check if APSD is lower or equals than FSD or APSD is
    lower or equals than FED

FEA: ItEr77S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2013-01-29 14:05:48 +01:00
parent c807a50376
commit 2bf13fef80

View file

@ -150,8 +150,8 @@ public class CalendarAvailability extends IntegrationEntity {
}
if (endDate == null) {
return startDate.compareTo(filterStartDate) >= 0
&& startDate.compareTo(filterEndDate) <= 0;
return startDate.compareTo(filterStartDate) <= 0
|| startDate.compareTo(filterEndDate) <= 0;
}
Interval filterPeriod = new Interval(