Merge pull request #7712 from creative-commoners/pulls/4.0/fix-last-non-sortable-column

FIX Ensure last GridField column when non sortable has its title displayed
This commit is contained in:
Daniel Hensby 2017-12-28 11:53:14 +00:00 committed by GitHub
commit 02761d6ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ class GridFieldSortableHeader implements GridField_HTMLProvider, GridField_DataM
'<button type="button" name="showFilter" title="Open search and filter" class="btn btn-secondary font-icon-search btn--no-text btn--icon-large grid-field__filter-open"></button>'
);
} else {
$field = new LiteralField($fieldName, '<span class="non-sortable"></span>');
$field = new LiteralField($fieldName, '<span class="non-sortable">' . $title . '</span>');
}
} else {
$field = new LiteralField($fieldName, '<span class="non-sortable">' . $title . '</span>');