3243 Fix bug with introduced examination date

This commit is contained in:
Andreas Svanberg 2023-10-31 16:11:11 +01:00
parent 58d95df913
commit 909936b290

@ -166,7 +166,6 @@ public class RoughDraftApprovalDecisionPage extends ReviewerPage {
IModel<List<User>> authors = approval.map(ReviewerApproval::getProject)
.map(Project::getProjectParticipants)
.map(ArrayList::new);
Label examinationDate = new Label("examination_date", this::getExaminationDate);
ListView<User> listView = new ListView<>("authors", authors) {
@Override
protected void populateItem(ListItem<User> item) {
@ -178,7 +177,7 @@ public class RoughDraftApprovalDecisionPage extends ReviewerPage {
protected void populateItem(ListItem<Examination> item) {
item.add(new Label("name", item.getModel().map(Examination::name).map(Name::english)));
item.add(new Label("points", item.getModel().map(Examination::points)));
item.add(examinationDate);
item.add(new Label("examination_date", DecisionForm.this::getExaminationDate));
}
});
item.add(new WebMarkupContainer("nothing_to_report") {