Fix hibernate exception when entering into order resourcesload due to company filter parameters

FEA: ItEr77S15FilteringEnhancements
This commit is contained in:
Lorenzo Tilve Álvaro 2013-02-14 13:06:54 +01:00
parent 35e1644cee
commit 177a9b40b8

View file

@ -312,6 +312,8 @@ public class ResourceLoadController implements Composer {
filterBy);
result.add(filterTypeChanger);
// Only by dates and bandbox filter on global resources load
if (filterBy == null) {
LocalDate startDate = FilterUtils.readResourceLoadsStartDate();
LocalDate endDate = FilterUtils.readResourceLoadsEndDate();
@ -355,6 +357,7 @@ public class ResourceLoadController implements Composer {
result.add(bandbox);
result.add(new ByNamePaginator(onChange, filterBy, filterTypeChanger,
bandbox));
}
result.add(new LoadChart(onChange, filterBy));
return result;
}