From 84273b80451cb85f14d5b35a40516cb93d7468bf Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 27 Mar 2023 17:57:02 +1300 Subject: [PATCH] FIX Remove legacy filter icon --- .../GridField/GridFieldSortableHeader.php | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/Forms/GridField/GridFieldSortableHeader.php b/src/Forms/GridField/GridFieldSortableHeader.php index 1902ee473..e43f1aa9e 100644 --- a/src/Forms/GridField/GridFieldSortableHeader.php +++ b/src/Forms/GridField/GridFieldSortableHeader.php @@ -188,25 +188,7 @@ class GridFieldSortableHeader extends AbstractGridFieldComponent implements Grid } } } else { - if ($currentColumn == count($columns ?? [])) { - $filter = $gridField->getConfig()->getComponentByType(GridFieldFilterHeader::class); - - if ($filter && $filter->canFilterAnyColumns($gridField)) { - $field = new LiteralField( - $fieldName, - sprintf( - '', - _t('SilverStripe\\Forms\\GridField\\GridField.OpenFilter', "Open search and filter"), - _t('SilverStripe\\Forms\\GridField\\GridField.OpenFilter', "Open search and filter") - ) - ); - } else { - $field = new LiteralField($fieldName, '' . $title . ''); - } - } else { - $field = new LiteralField($fieldName, '' . $title . ''); - } + $field = new LiteralField($fieldName, '' . $title . ''); } $forTemplate->Fields->push($field); }