Commit b82715c3 authored by Dries's avatar Dries

- Patch #883998 by Berdir: node_default_page() query fails on PostgreSQL when...

- Patch #883998 by Berdir: node_default_page() query fails on PostgreSQL when having node_access() modules enabled.
parent 82ddaf7e
......@@ -2461,7 +2461,7 @@ function node_view_multiple($nodes, $view_mode = 'teaser', $weight = 0) {
*/
function node_page_default() {
$select = db_select('node', 'n')
->fields('n', array('nid'))
->fields('n', array('nid', 'sticky', 'created'))
->condition('promote', 1)
->condition('status', 1)
->orderBy('sticky', 'DESC')
......
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