Commit fb1170e1 authored by Dries's avatar Dries
Browse files

- Patch #724780 by fgm: Fixed incorrect use of node_load() in book_admin_edit_submit().

parent 0071d5e2
...@@ -124,7 +124,7 @@ function book_admin_edit_submit($form, &$form_state) { ...@@ -124,7 +124,7 @@ function book_admin_edit_submit($form, &$form_state) {
// Update the title if changed. // Update the title if changed.
if ($row['title']['#default_value'] != $values['title']) { if ($row['title']['#default_value'] != $values['title']) {
$node = node_load($values['nid'], FALSE); $node = node_load($values['nid']);
$langcode = LANGUAGE_NONE; $langcode = LANGUAGE_NONE;
$node->title = $values['title']; $node->title = $values['title'];
$node->book['link_title'] = $values['title']; $node->book['link_title'] = $values['title'];
......
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