contao/test — Issue #2521: Modules without names do not show their type
Author: aschempp
Created: 2011-11-29 09:49:52+00:00
State: open
Labels: backend, Defect

In TYPOlight 2.8, the module list was compiled by the DataContainer, and therefore did use the correct row value if a reference was not available for a given field. In 2.9, modules are listed using a function in tl_module, and ignore this previous "feature". We can restore the functionality by adjusting listModule() in system/modules/backend/dca/tl_module.php like this:

```
public function listModule($row)
{
return '

'. $row['name'] .' ['. ($GLOBALS['TL_LANG']['FMD'][$row['type']][0] ? $GLOBALS['TL_LANG']['FMD'][$row['type']][0] : $row['type']) .']' . "

\n";
}
```

[Download the attachments](http://www.contao.org/tl_files/tickets/2521.zip "Download the attachments of this ticket")

--- _Originally created on September 9th, 2010, at 09:46pm (ID 2521)_