From: sam_marshall Date: Thu, 21 Aug 2008 16:35:12 +0000 (+0000) Subject: MDL-15498: Completion system: progress report had issues with long label names X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82fd829dc3a7d9a71e966429f802e76b401c1ccf;p=moodle.git MDL-15498: Completion system: progress report had issues with long label names --- diff --git a/course/report/progress/index.php b/course/report/progress/index.php index 35c4fd6f63..1d1cbf87d6 100644 --- a/course/report/progress/index.php +++ b/course/report/progress/index.php @@ -139,6 +139,9 @@ foreach($activities as $activity) { } else { $datetext=''; } + + // Some names (labels) come URL-encoded and can be very long, so shorten them + $activity->name=shorten_text(urldecode($activity->name)); if($csv) { print $sep.csv_quote($activity->name).$sep.csv_quote($datetext);