You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GridField has no items, normally a row spanning all columns is inserted with the text 'No items found'. However, when the GridField is given no actions, this row is fixed to span only two columns.
This is caused by the 'hacky' fix for silverstripe/silverstripe-framework#7610, which makes clear that this code exists so that an additional column could be added. This works fine if there's one cell for each column, since only the last cell is changed to span two columns, but doesn't in this particular situation.
This code seems to have been added to create space for a search button in SS3. This search button doesn't seem to exist anymore, so complete removal of this function may do the trick without consequences.
Additional Context
No response
Validations
Check that there isn't already an issue that reports the same bug
Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)
Module version(s) affected
2.1.16
Description
When a GridField has no items, normally a row spanning all columns is inserted with the text 'No items found'. However, when the GridField is given no actions, this row is fixed to span only two columns.
This is caused by the 'hacky' fix for silverstripe/silverstripe-framework#7610, which makes clear that this code exists so that an additional column could be added. This works fine if there's one cell for each column, since only the last cell is changed to span two columns, but doesn't in this particular situation.
The colspan change happens in
silverstripe-admin/client/src/legacy/GridField.js
Lines 175 to 188 in 8c1861c
How to reproduce
Possible Solution
This code seems to have been added to create space for a search button in SS3. This search button doesn't seem to exist anymore, so complete removal of this function may do the trick without consequences.
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)PRs
The text was updated successfully, but these errors were encountered: