forked from science-ation/science-ation
- Add a grade column that uses the format "Grade x", instead of just the
number. Fix the YSF stats report to use this column and show "Grade x" in the titles, not just "x", which was a bit confusing.
This commit is contained in:
parent
eaad48d6d0
commit
d89c756427
@ -116,6 +116,13 @@ $report_students_fields = array(
|
||||
'width' => 0.3,
|
||||
'table' => 'students.grade'),
|
||||
|
||||
'grade_str' => array(
|
||||
'name' => 'Student -- Grade ("Grade x", not just the number)',
|
||||
'header' => 'Gr.',
|
||||
'width' => 0.3,
|
||||
'table_sort' => 'students.grade',
|
||||
'table' => "CONCAT('Grade ', students.grade)"),
|
||||
|
||||
'gender' => array(
|
||||
'name' => 'Student -- Gender',
|
||||
'header' => 'Gender',
|
||||
|
@ -1 +1 @@
|
||||
93
|
||||
94
|
||||
|
4
db/db.update.94.sql
Normal file
4
db/db.update.94.sql
Normal file
@ -0,0 +1,4 @@
|
||||
SELECT @id:=id FROM reports WHERE system_report_id='18';
|
||||
UPDATE `reports_items` SET `field`='grade_str' WHERE `field`='grade' AND `reports_id`=@id;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user