- 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:
dave 2007-12-30 21:20:36 +00:00
parent eaad48d6d0
commit d89c756427
3 changed files with 12 additions and 1 deletions

View File

@ -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',

View File

@ -1 +1 @@
93
94

4
db/db.update.94.sql Normal file
View 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;