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

merge-requests/26/head
Dries Buytaert 2010-08-16 20:59:34 +00:00
parent 82ddaf7e7e
commit b82715c333
1 changed files with 1 additions and 1 deletions

View File

@ -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')