Commit 4e28fbfd authored by Dries's avatar Dries
Browse files

- Patch #766382 by andypost: column 'status' is ambiguous when using node access modules.

parent b5ff7dd4
......@@ -1279,7 +1279,7 @@ function menu_tree_check_access(&$tree, $node_links = array()) {
$nids = array_keys($node_links);
$select = db_select('node', 'n');
$select->addField('n', 'nid');
$select->condition('status', 1);
$select->condition('n.status', 1);
$select->condition('n.nid', $nids, 'IN');
$nids = $select->execute()->fetchCol();
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