Merge branch 'MDL-55352-master-fix' of https://github.com/lameze/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Aug 2016 02:10:38 +0000 (10:10 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 2 Aug 2016 02:10:38 +0000 (10:10 +0800)
mod/feedback/item/multichoicerated/lib.php

index a28a6d2..7c51cf9 100644 (file)
@@ -198,14 +198,14 @@ class feedback_item_multichoicerated extends feedback_item_base {
                         array('noclean' => true, 'para' => false));
 
                 if ($val->quotient > 0) {
-                    $strquotient = '('.$quotient.' %)';
+                    $strquotient = ' ('.$quotient.' %)';
                 } else {
                     $strquotient = '';
                 }
 
                 $data['labels'][$count] = $answertext;
                 $data['series'][$count] = $val->answercount;
-                $data['series_labels'][$count] = $strquotient;
+                $data['series_labels'][$count] = $val->answercount . $strquotient;
                 $count++;
             }
             $chart = new \core\chart_bar();