From 82fd829dc3a7d9a71e966429f802e76b401c1ccf Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Thu, 21 Aug 2008 16:35:12 +0000 Subject: [PATCH] MDL-15498: Completion system: progress report had issues with long label names --- course/report/progress/index.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5