Commit 6c764527 authored by merlinofchaos's avatar merlinofchaos

#136794: Sort by nid via click-sorting was also broken

parent 33e04ad4
......@@ -8,6 +8,7 @@ Views 5.x-dev
o #136330: Fix problems with views_cache table not existing when updating from 1.5 -> 1.6-beta.
o #138510: Multi-select for taxonomy had disappeared.
o #117365: Comment: Last Changed Time wasn't ensuring node_comment_statistics is in the query.
o #136794: Sort by nid via click-sorting was also broken
Views 5.x-beta3
Bugs fixed:
......
......@@ -32,6 +32,7 @@ function node_views_tables() {
'sortable' => true,
'notafield' => true,
'handler' => 'views_handler_node_nid',
'sort_handler' => 'views_node_query_handler_nid',
'help' => t('Display the NID of a node.'),
),
'created' => array(
......@@ -756,6 +757,10 @@ function views_node_sort_handler_nid($action, &$query, $sortinfo, $sort) {
$query->orderby[] = "node.nid $sort[sortorder]";
}
function views_node_query_handler_nid($fielddata, $fieldinfo) {
return "node.nid";
}
function views_handler_arg_node_feed($op, &$query, $argtype, $arg = '') {
switch($op) {
case 'summary':
......
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