diff --git a/admin/reports_students.inc.php b/admin/reports_students.inc.php index d46b9ab..cbc0223 100644 --- a/admin/reports_students.inc.php +++ b/admin/reports_students.inc.php @@ -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', diff --git a/db/db.code.version.txt b/db/db.code.version.txt index c67f579..49541f7 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -93 +94 diff --git a/db/db.update.94.sql b/db/db.update.94.sql new file mode 100644 index 0000000..afcf51c --- /dev/null +++ b/db/db.update.94.sql @@ -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; + +