Skip to content
Snippets Groups Projects
Commit 7b76100f authored by xamgore's avatar xamgore
Browse files

Make credit disciplines green after 60-threshold

parent 5421c1e2
Branches
Tags
No related merge requests found
......@@ -8,8 +8,12 @@ class Controller_Student_Index extends Controller_Environment_Student
$marks = [];
foreach ($disciplines as $dis) {
if (isset($dis->Rate) && isset($dis->MaxCurrentRate))
if (isset($dis->Rate) && isset($dis->MaxCurrentRate)) {
$marks[$dis->ID] = Model_Subject::getECTSMark($dis->Rate, $dis->MaxCurrentRate, $exam = NULL);
if ($dis->Type == Model_Discipline::CREDIT && $dis->Rate >= 60)
$marks[$dis->ID] = Model_Subject::MARK_A;
}
}
$teachers = $student->getTeachers();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment