Just ran into an interesting bug.

If you add a field, and then hit "Cancel", the click sort column option doesn't get saved. The default might be an empty string.
And the click sort function tries to use that option even if it's empty, and fails (taking the query down with it).

Two changes:
1) Abort the click sort if the column is empty
2) Better detecting of column defaults (if there is only one column, use it as the default)

CommentFileSizeAuthor
click_sort_tweak.patch1.51 KBbojanz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Needs review » Fixed

Thanks. As talked in irc this makes 100% sense

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.