Commit 514b12c4 authored by Steven Wittens's avatar Steven Wittens

- #47844: Book module doesn't delete table entry for nodes added to outline.

parent 725ce1dc
...@@ -475,6 +475,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) { ...@@ -475,6 +475,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
case 'delete revision': case 'delete revision':
db_query('DELETE FROM {book} WHERE vid = %d', $node->vid); db_query('DELETE FROM {book} WHERE vid = %d', $node->vid);
break; break;
case 'delete':
db_query('DELETE FROM {book} WHERE nid = %d', $node->nid);
break;
} }
} }
......
...@@ -475,6 +475,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) { ...@@ -475,6 +475,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
case 'delete revision': case 'delete revision':
db_query('DELETE FROM {book} WHERE vid = %d', $node->vid); db_query('DELETE FROM {book} WHERE vid = %d', $node->vid);
break; break;
case 'delete':
db_query('DELETE FROM {book} WHERE nid = %d', $node->nid);
break;
} }
} }
......
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