Skip to content
Snippets Groups Projects
Commit f11dba25 authored by srosse's avatar srosse
Browse files

OO-2955 : all must select the Authorized absences check box if the configuration need it

parent 92eca3f5
No related branches found
No related tags found
No related merge requests found
...@@ -531,6 +531,14 @@ public class TeacherRollCallController extends FormBasicController { ...@@ -531,6 +531,14 @@ public class TeacherRollCallController extends FormBasicController {
check.select(onKeys[0], true); check.select(onKeys[0], true);
} }
row.setRollCall(rollCall); row.setRollCall(rollCall);
if(authorizedAbsenceEnabled) {
if(rollCall.getAbsenceAuthorized() != null && rollCall.getAbsenceAuthorized().booleanValue()) {
row.getAuthorizedAbsence().select(onKeys[0], true);
} else {
row.getAuthorizedAbsence().uncheckAll();
}
row.getAuthorizedAbsenceCont().setDirty(true);
}
row.getRollCallStatusEl().getComponent().setDirty(true); row.getRollCallStatusEl().getComponent().setDirty(true);
tableEl.reloadData(); tableEl.reloadData();
flc.setDirty(true); flc.setDirty(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment