Problem/Motivation

Using a custom module, we hide the username and use firstname/lastname etc. fields instead. These display as they should when viewing webform submissions, but of course clicking to sort the column uses the underlying value.

Proposed resolution

Tagging the $pager_query in webform.submissions.inc would allow a hook to alter the query. I'll submit the patch I did locally once I have the issue number.

Even though it's so trivial, it's my first, so let me know of anything I should improve. Thank you!

Comments

hcethatsme’s picture

Here's the patch. Any/all feedback welcome!

hcethatsme’s picture

I hadn't explored the 4.x branch yet, and I see all the queries there are tagged, so this would be moot when we upgrade. Thanks & kudos for the tags!

quicksketch’s picture

Status: Active » Closed (won't fix)

I'd encourage you to use the 4.x branch if you need this functionality. Otherwise you may be okay running a minor patched version for the time being. We're planning on releasing a 4.0 final before the end of the year.