Browse Source

Improves for legend on Report page: If a student began to attend classes later, the taken sessions for him will be shown as '-'.

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
4254dfb830
  1. 6
      report.php

6
report.php

@ -168,7 +168,11 @@
if ($sessdata->groupid && !array_key_exists($sessdata->groupid, $studgroups)) if ($sessdata->groupid && !array_key_exists($sessdata->groupid, $studgroups))
$table->data[$student->id][] = ''; $table->data[$student->id][] = '';
else else
$table->data[$student->id][] = '?'; if($sessdata->lasttaken > 0) {
$table->data[$student->id][] = '–';
} else {
$table->data[$student->id][] = '?';
}
} }
} }
foreach($statuses as $st) { foreach($statuses as $st) {

Loading…
Cancel
Save