From ab95f66c2ec419092271fe14199881816ed4e453 Mon Sep 17 00:00:00 2001 From: Adrian Greeve Date: Tue, 6 Sep 2016 09:16:18 +0800 Subject: [PATCH] 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. --- mod/data/field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/field.php b/mod/data/field.php index fdf2e87a28e..9ffab95c88b 100644 --- a/mod/data/field.php +++ b/mod/data/field.php @@ -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'))) .