services
services copied to clipboard
Fixes for _node_resource_index() issues
Hi!
I had problems getting the node index working. Found two issues in _node_resource_index():
- The $fields variable is empty instead of '*'. Added a check for this as suggested here: http://drupal.org/node/985312.
- The WHERE causes uses an
n
alias for thenode
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