diff --git a/sencha-workspace/packages/scienceleadership-narratives/overrides/SectionTermReportsStudentsGrid.js b/sencha-workspace/packages/scienceleadership-narratives/overrides/SectionTermReportsStudentsGrid.js index 8f62299..9f2c64b 100644 --- a/sencha-workspace/packages/scienceleadership-narratives/overrides/SectionTermReportsStudentsGrid.js +++ b/sencha-workspace/packages/scienceleadership-narratives/overrides/SectionTermReportsStudentsGrid.js @@ -7,12 +7,9 @@ Ext.define('ScienceLeadership.narratives.overrides.SectionTermReportsStudentsGri me.columns = Ext.Array.insert(Ext.Array.clone(me.columns), 1, [{ text: 'Grade', - dataIndex: 'report', + dataIndex: 'report_grade', emptyCellText: '—', - width: 70, - renderer: function(report) { - return report && report.get('Grade') || null; - } + width: 70 }]); me.callParent(arguments); diff --git a/sencha-workspace/packages/scienceleadership-narratives/overrides/TermReportsController.js b/sencha-workspace/packages/scienceleadership-narratives/overrides/TermReportsController.js new file mode 100644 index 0000000..c4b7f12 --- /dev/null +++ b/sencha-workspace/packages/scienceleadership-narratives/overrides/TermReportsController.js @@ -0,0 +1,12 @@ +Ext.define('Scienceleadership.narratives.overrides.TermsReportController', { + override: 'SlateAdmin.controller.progress.terms.Report', + + + syncStudent: function(student) { + this.callParent(arguments); + + var report = student.get('report'); + + student.set('report_grade', report ? report.get('Grade') : null, { dirty: false }); + } +}); \ No newline at end of file diff --git a/sencha-workspace/packages/scienceleadership-narratives/package.json b/sencha-workspace/packages/scienceleadership-narratives/package.json index b9269bf..7c9224c 100644 --- a/sencha-workspace/packages/scienceleadership-narratives/package.json +++ b/sencha-workspace/packages/scienceleadership-narratives/package.json @@ -62,7 +62,7 @@ * Typically, changes to the package should come along with changes to the version. * This number should be in this format: d+(.d+)* */ - "version": "1.1.3", + "version": "1.1.4", /** * The version that users can transparently update from without requiring code changes.