Commit 4b6e9f40 authored by Dries's avatar Dries

- Patch #221057 by pwolanin: book module may overwrite another node's link.

parent 45b0040e
......@@ -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':
......
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