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

OO-4843: correction column doesn't always exists

parent ae11e2ac
No related branches found
No related tags found
No related merge requests found
......@@ -276,9 +276,11 @@ public class QTI21AssessmentDetailsController extends FormBasicController {
.booleanValue();
infos.add(forgeDetailsRow(sessionStatistics));
}
correctionCol.setAlwaysVisible(manualCorrections);
correctionCol.setDefaultVisible(manualCorrections);
tableEl.setColumnModelVisible(correctionCol, manualCorrections);
if(correctionCol != null) {
correctionCol.setAlwaysVisible(manualCorrections);
correctionCol.setDefaultVisible(manualCorrections);
tableEl.setColumnModelVisible(correctionCol, manualCorrections);
}
Collections.sort(infos, new AssessmentTestSessionDetailsComparator());
tableModel.setObjects(infos);
......
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