Commit 795e5678 authored by theo lem's avatar theo lem
Browse files

Added missing field in select on webform module that caused errors when sorting data.

parent 8424fc27
......@@ -830,6 +830,7 @@ function webform_get_submissions_query($filters = array(), $header = NULL, $page
// Sort by submitted data column if order is set but not in
// $metadata_columns.
if (isset($sort['order']) && !in_array($sort['order'], $metadata_columns, TRUE)) {
$pager_query->fields('wsd', array('data'));
// Default if sort is unset or invalid.
if (!isset($sort['sort']) || !in_array($sort['sort'], array('asc', 'desc'), TRUE)) {
$sort['sort'] = '';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment