mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-66938 mod_feedback: Export includes unwanted html in field names
This commit is contained in:
parent
c55402486b
commit
5385f5a8af
@ -295,6 +295,7 @@ class mod_feedback_responses_table extends table_sql {
|
||||
$columnscount = 0;
|
||||
$this->hasmorecolumns = max(0, count($items) - self::TABLEJOINLIMIT);
|
||||
|
||||
$headernamepostfix = !$this->is_downloading();
|
||||
// Add feedback response values.
|
||||
foreach ($items as $nr => $item) {
|
||||
if ($columnscount++ < self::TABLEJOINLIMIT) {
|
||||
@ -308,7 +309,7 @@ class mod_feedback_responses_table extends table_sql {
|
||||
|
||||
$tablecolumns[] = "val{$nr}";
|
||||
$itemobj = feedback_get_item_class($item->typ);
|
||||
$tableheaders[] = $itemobj->get_display_name($item);
|
||||
$tableheaders[] = $itemobj->get_display_name($item, $headernamepostfix);
|
||||
}
|
||||
|
||||
// Add 'Delete entry' column.
|
||||
|
Loading…
x
Reference in New Issue
Block a user