Merged in bug-fixing-270824 (pull request #82)
Fixed an use case where the export of Excel failed if no students had answered it Approved-by: Tiago Ribeiro
This commit is contained in:
@@ -195,12 +195,16 @@ function commonExcel({
|
|||||||
|
|
||||||
// K10:M12 = 10,11,12,13
|
// K10:M12 = 10,11,12,13
|
||||||
// horizontally group Test Sections
|
// horizontally group Test Sections
|
||||||
|
|
||||||
|
// if there are test section headers to even merge:
|
||||||
|
if(testSectionHeaders.length > 1) {
|
||||||
worksheet.mergeCells(
|
worksheet.mergeCells(
|
||||||
startIndexTable,
|
startIndexTable,
|
||||||
staticHeaders.length + 1,
|
staticHeaders.length + 1,
|
||||||
startIndexTable,
|
startIndexTable,
|
||||||
tableColumnHeadersFirstPart.length
|
tableColumnHeadersFirstPart.length
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Add the dynamic second and third header rows for test sections and sub-columns
|
// Add the dynamic second and third header rows for test sections and sub-columns
|
||||||
worksheet.addRow([
|
worksheet.addRow([
|
||||||
|
|||||||
Reference in New Issue
Block a user