Skip to content

Commit

Permalink
MDL-55299 mod_feedback: fix quoted values donwload
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranrecio committed Jul 22, 2020
1 parent 741d6dd commit 5025c1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/feedback/classes/responses_table.php
Expand Up @@ -194,7 +194,11 @@ public function other_cols($column, $row) {
if (preg_match('/^val(\d+)$/', $column, $matches)) {
$items = $this->feedbackstructure->get_items();
$itemobj = feedback_get_item_class($items[$matches[1]]->typ);
return trim($itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column] ));
$printval = $itemobj->get_printval($items[$matches[1]], (object) ['value' => $row->$column]);
if ($this->is_downloading()) {
$printval = html_entity_decode($printval, ENT_QUOTES);
}
return trim($printval);
}
return $row->$column;
}
Expand Down

0 comments on commit 5025c1a

Please sign in to comment.