private List<Date> dateFilters = new ArrayList<Date>();
private CheckBox expandCheckbox = null;
private String defaultFilter;
+ private int defaultPeriodIndex = -1;
// source
private ViolationsPanel sourcePanel;
dateFilters.add(date);
}
}
+ if (defaultPeriodIndex > -1) {
+ periodBox.setSelectedIndex(defaultPeriodIndex);
+ }
}
private Date getCurrentDateFilter() {
if (defaultFilter == null) {
defaultFilter = Configuration.getRequestParameter("priority");
}
+ String period = Configuration.getRequestParameter("period");
+ if (period != null && !"".equals(period)) {
+ defaultPeriodIndex = Integer.valueOf(period);
+ }
}
private void loadRuleSeverities() {