MDL-55862 mod_data: Use proper name function for display.

The old method for displaying the name of a field was being
used. This meant that it was not possible to show a plugin's
name in view.php

Thanks to David Herney Bernal for providing a solution.
This commit is contained in:
Adrian Greeve
2016-09-08 20:30:00 +08:00
parent 04b0feca62
commit e9bf5a3998
+1 -1
View File
@@ -296,7 +296,7 @@ if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) { ///
$table->data[] = array(
html_writer::link($displayurl, $field->field->name),
$field->image() . ' ' . get_string($field->type, 'data'),
$field->image() . ' ' . $field->name(),
$field->field->required ? get_string('yes') : get_string('no'),
shorten_text($field->field->description, 30),
html_writer::link($displayurl, $OUTPUT->pix_icon('t/edit', get_string('edit'))) .