Skip to content

Commit

Permalink
Fix display of multi-term presentations in the form CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Dec 29, 2015
1 parent 25eb0a8 commit 4e4062c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Kinza/lib/Kinza/Reports.pm
Expand Up @@ -41,7 +41,9 @@ get '/form' => sub {
foreach my $s ($f->students->search({}, { order_by => 'name' })) {
$csv .= $s->name;
foreach my $a ($s->sorted_attendances) {
$csv .= ',"' . $a->presentation->course->title . '"';
for (1 .. $a->presentation->number_of_terms) {
$csv .= ',"' . $a->presentation->course->title . '"';
}
}
$csv .= "\n";
}
Expand Down

0 comments on commit 4e4062c

Please sign in to comment.