contao/test — Issue #499: Allow Tables to show header links/elements, even if no Rows [closed=true]
Author: importer
Created: 2011-11-28 16:54:51+00:00
State: open
Labels: backend, Feature

Hi leo

Please can you make a small change to the core, which will allow tables to still have their header actions/links displayed when there is no data ($objRow->numRows = 0), when the table is marked as closed (cannot add any more items).

This is useful when you edit a child table and there are no entries, then the user can at least click on the go-back button, or perform additional header actions (not add record of course, since its close). At the moment the header is not displayed at all.

Change this:

```
if (

![]($GLOBALS['TL_DCA'][$this->strTable]['config']['closed']
|| count($GLOBALS['TL_DCA'][$this->strTable]['list']['global_operations'])
&& $objRow->numRows)

```

... to this (remove "&& $objRow->numRows")

```
if ()$GLOBALS['TL_DCA'][$this->strTable]['config']['closed']
|| count($GLOBALS['TL_DCA'][$this->strTable]['list']['global_operations']))

```

--- _Originally created by thyon on February 9th, 2009, at 04:34pm (ID 499)_