Skip to content

Fix no colspan on table tempty#2313

Open
PhilippGrashoff wants to merge 8 commits into
atk4:developfrom
PhilippGrashoff:fix-no-colspan-on-table-tempty
Open

Fix no colspan on table tempty#2313
PhilippGrashoff wants to merge 8 commits into
atk4:developfrom
PhilippGrashoff:fix-no-colspan-on-table-tempty

Conversation

@PhilippGrashoff
Copy link
Copy Markdown
Collaborator

Table::tEmpty default Template is:

  <tr>
    <td colspan="{$columns}">No records.</td>
  </tr>

However, {$columns} was never set, so the always had an empty colspan value. This PR fixes it.

Comment thread src/Table.php
// add totals rows or empty message
if ($this->_renderedRowsCount === 0) {
if (!$this->jsPaginator || !$this->jsPaginator->getPage()) {
$this->tEmpty->set('columns', (string) count($this->columns));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a demo where this can be tested - before and after?

@mvorisek mvorisek removed their assignment May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants