diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-19 23:45:29 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-19 23:45:29 -0700 |
commit | c9f793c456d30f76258d9de00023a9691d052925 (patch) | |
tree | 47ee44c53f049d383c1e0aac793577d9c9e1e236 /modules/book/book.module | |
parent | a5fd8c9478e0a99c44a256cca6bd0b4cb5bb2ac5 (diff) | |
download | brdo-c9f793c456d30f76258d9de00023a9691d052925.tar.gz brdo-c9f793c456d30f76258d9de00023a9691d052925.tar.bz2 |
Issue #766382 by neoglez, pebosi, andypost, sarah_p: Fixed Column 'nid' is ambiguous when using node access modules.
Diffstat (limited to 'modules/book/book.module')
-rw-r--r-- | modules/book/book.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index beb17214c..595d87d2d 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -281,7 +281,7 @@ function book_block_view($delta = '') { // Only display this block when the user is browsing a book. $select = db_select('node', 'n') ->fields('n', array('title')) - ->condition('nid', $node->book['bid']) + ->condition('n.nid', $node->book['bid']) ->addTag('node_access'); $title = $select->execute()->fetchField(); // Only show the block if the user has view access for the top-level node. |