Commit 22765a73 authored by merlinofchaos's avatar merlinofchaos

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

parent 50b3be80
......@@ -8,6 +8,7 @@ Views 4.7.x-dev
o #140431: Taxonomy select boxes were improperly showing descriptions.
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 4.7.x-1.6-beta3
o Reverting #130196: The original behavior was correct.
......
......@@ -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(
......@@ -758,6 +759,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