Merge branch 'MDL-55352-master-fix' of https://github.com/lameze/moodle

This commit is contained in:
Andrew Nicols 2016-08-02 10:10:38 +08:00
commit 346cf5abb9

View 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();