Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Sort of GridField Header #96

Merged
merged 1 commit into from
Nov 18, 2016

Conversation

schellmax
Copy link
Contributor

When not in 'Drag&Drop reordering' mode ('sortableToggle' is false) and a SortColumn is set by GridField's header, this last one should be used; otherwise, when the user clicks on a sortable header, the list is reloaded and the header shows a up/down sorting arrow, but this doesn't reflect the actual sorting.

When not in 'Drag&Drop reordering' mode ('sortableToggle' is false) and a SortColumn is set by GridField's header, this last one should be used; otherwise, when the user clicks on a sortable header, the list is reloaded and the header shows a up/down sorting arrow, but this doesn't reflect the actual sorting.
@UndefinedOffset
Copy link
Owner

I wonder if the issue here is simpler, looking at the code currently present I think there maybe a bug. Look at the last check in the if statement !empty($headerState->SortColumn) I think the logic is backwards.

@UndefinedOffset
Copy link
Owner

Actually maybe not... I'll have a look in more detail at this likely your pull will get merged :)

@UndefinedOffset UndefinedOffset merged commit d3cfda5 into UndefinedOffset:master Nov 18, 2016
@UndefinedOffset
Copy link
Owner

good fix thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants