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

OO-3588: fill all cells in the excel export of check lists

parent efccb8e8
No related branches found
No related tags found
No related merge requests found
......@@ -274,7 +274,7 @@ public class CheckListAssessmentController extends FormBasicController implement
table.setCustomizeColumns(true);
FlexiTableSortOptions sortOptions = new FlexiTableSortOptions();
table.setSortSettings(sortOptions);
table.setAndLoadPersistedPreferences(ureq, "checklist-assessment");
table.setAndLoadPersistedPreferences(ureq, "checklist-assessment-" + courseNode.getIdent());
pdfExportButton = uifactory.addFormLink("pdf.export", formLayout, Link.BUTTON);
pdfExportButton.setEnabled(numOfCheckbox > 0);
......
......@@ -311,6 +311,8 @@ public class CheckListAssessmentDataModel extends DefaultFlexiTableDataModel<Che
Float[] scores = assessmentRow.getScores();
if(checked && scores != null && scores.length > 0 && propIndex < scores.length) {
dataRow.addCell(pos++, scores[propIndex], null);
} else {
dataRow.addCell(pos++, null);
}
}
} else {
......
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