diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-02-14 18:32:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-02-14 18:32:14 +0000 |
commit | 4b6e9f40bd530d3b1534ebe9abe2f71399491718 (patch) | |
tree | 7aecc30b1f184d8086823c4df2230100c39f27cf | |
parent | 45b0040e55b4b5dd8b125a2334ce5f246d7336c3 (diff) | |
download | brdo-4b6e9f40bd530d3b1534ebe9abe2f71399491718.tar.gz brdo-4b6e9f40bd530d3b1534ebe9abe2f71399491718.tar.bz2 |
- Patch #221057 by pwolanin: book module may overwrite another node's link.
-rw-r--r-- | modules/book/book.module | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index bb4083277..f4dc78999 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -683,6 +683,10 @@ function book_nodeapi(&$node, $op, $teaser, $page) { if (!empty($node->book['bid']) && !user_access('administer nodes')) { $node->revision = 1; } + // Make sure a new node gets a new menu link. + if (empty($node->nid)) { + $node->book['mlid'] = NULL; + } break; case 'insert': case 'update': |