From 5b763710a85c1fb2e9793285ab1e74ed426f56f5 Mon Sep 17 00:00:00 2001 From: plukasew Date: Tue, 11 Dec 2018 10:12:40 -0500 Subject: [PATCH] SAK-41061: Wrong column for course grade updated when student numbers enabled in gradebook (#6376) --- gradebookng/tool/src/webapp/scripts/gradebook-gbgrade-table.js | 1 + 1 file changed, 1 insertion(+) diff --git a/gradebookng/tool/src/webapp/scripts/gradebook-gbgrade-table.js b/gradebookng/tool/src/webapp/scripts/gradebook-gbgrade-table.js index 54610f4db38b..eeb9af4b521c 100644 --- a/gradebookng/tool/src/webapp/scripts/gradebook-gbgrade-table.js +++ b/gradebookng/tool/src/webapp/scripts/gradebook-gbgrade-table.js @@ -614,6 +614,7 @@ GbGradeTable.renderTable = function (elementId, tableData) { } GbGradeTable.FIXED_COLUMN_OFFSET = GbGradeTable.getFixedColumns().length; + GbGradeTable.COURSE_GRADE_COLUMN_INDEX = GbGradeTable.FIXED_COLUMN_OFFSET - 1; // course grade is always the last fixed column GbGradeTable.domElement.addClass('gb-fixed-columns-' + GbGradeTable.FIXED_COLUMN_OFFSET); GbGradeTable.grades = GbGradeTable.mergeColumns(GbGradeTable.unpack(tableData.serializedGrades,