services icon indicating copy to clipboard operation
services copied to clipboard

Fixes for _node_resource_index() issues

Open henrrrik opened this issue 14 years ago • 0 comments

Hi!

I had problems getting the node index working. Found two issues in _node_resource_index():

  1. The $fields variable is empty instead of '*'. Added a check for this as suggested here: http://drupal.org/node/985312.
  2. The WHERE causes uses an n alias for the node table column, but it's not defined so it fails.

Here's the error:

Unknown column 'n.language' in 'where clause'; query: SELECT * FROM node WHERE (n.language ='sv' OR n.language ='' OR n.language IS NULL) ORDER BY sticky DESC, created DESC LIMIT 0,20

Cheers,

Henrik

henrrrik avatar Dec 02 '10 16:12 henrrrik