Skip to content
Snippets Groups Projects
Commit 4e28fbfd authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent b5ff7dd4
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1279,7 +1279,7 @@ function menu_tree_check_access(&$tree, $node_links = array()) { ...@@ -1279,7 +1279,7 @@ function menu_tree_check_access(&$tree, $node_links = array()) {
$nids = array_keys($node_links); $nids = array_keys($node_links);
$select = db_select('node', 'n'); $select = db_select('node', 'n');
$select->addField('n', 'nid'); $select->addField('n', 'nid');
$select->condition('status', 1); $select->condition('n.status', 1);
$select->condition('n.nid', $nids, 'IN'); $select->condition('n.nid', $nids, 'IN');
$select->addTag('node_access'); $select->addTag('node_access');
$nids = $select->execute()->fetchCol(); $nids = $select->execute()->fetchCol();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment