- Patch #221057 by pwolanin: book module may overwrite another node's link.
parent
45b0040e55
commit
4b6e9f40bd
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue