MDL-83850 report_progress: Add 'Completed' heading in the csv
This commit is contained in:
@@ -314,14 +314,10 @@ foreach($activities as $activity) {
|
||||
$datepassed = $activity->completionexpected && $activity->completionexpected <= time();
|
||||
$datepassedclass = $datepassed ? 'completion-expired' : '';
|
||||
|
||||
if ($activity->completionexpected) {
|
||||
if ($csv) {
|
||||
$datetext = userdate($activity->completionexpected, "%F %T");
|
||||
} else {
|
||||
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
||||
}
|
||||
if ($activity->completionexpected && !$csv) {
|
||||
$datetext = userdate($activity->completionexpected, get_string('strftimedate', 'langconfig'));
|
||||
} else {
|
||||
$datetext='';
|
||||
$datetext = get_string('completed');
|
||||
}
|
||||
|
||||
// Some names (labels) come URL-encoded and can be very long, so shorten them
|
||||
|
||||
Reference in New Issue
Block a user