mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-58781 mod_feedback: Inconsistency in analysis exported to excel
This commit is contained in:
parent
674ef9baac
commit
b0af7093cf
@ -80,15 +80,14 @@ $rowoffset1 = 0;
|
||||
$worksheet1->write_string($rowoffset1, 0, userdate(time()), $xlsformats->head1);
|
||||
|
||||
// Get the completeds.
|
||||
$completedscount = feedback_get_completeds_group_count($feedback, $mygroupid, $courseid);
|
||||
if ($completedscount > 0) {
|
||||
// Write the count of completeds.
|
||||
$rowoffset1++;
|
||||
$worksheet1->write_string($rowoffset1,
|
||||
0,
|
||||
$cm->get_module_type_name(true).': '.strval($completedscount),
|
||||
$xlsformats->head1);
|
||||
}
|
||||
$completedscount = $feedbackstructure->count_completed_responses($mygroupid);
|
||||
// Write the count of completeds.
|
||||
// Keep consistency and write count of completeds even when they are 0.
|
||||
$rowoffset1++;
|
||||
$worksheet1->write_string($rowoffset1,
|
||||
0,
|
||||
get_string('completed_feedbacks', 'feedback').': '.strval($completedscount),
|
||||
$xlsformats->head1);
|
||||
|
||||
$rowoffset1++;
|
||||
$worksheet1->write_string($rowoffset1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user