]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15498: Completion system: progress report had issues with long label names
authorsam_marshall <sam_marshall>
Thu, 21 Aug 2008 16:35:12 +0000 (16:35 +0000)
committersam_marshall <sam_marshall>
Thu, 21 Aug 2008 16:35:12 +0000 (16:35 +0000)
course/report/progress/index.php

index 35c4fd6f635718ebcc0721670fddceacd94f2ab9..1d1cbf87d6d9ef9f5bba1425dc669dbe0de4b33c 100644 (file)
@@ -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);