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:
+1
-1
@@ -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'))) .
|
||||
|
||||
Reference in New Issue
Block a user