Skip to content
Snippets Groups Projects
Commit fb1170e1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 0071d5e2
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -124,7 +124,7 @@ function book_admin_edit_submit($form, &$form_state) {
// Update the title if changed.
if ($row['title']['#default_value'] != $values['title']) {
$node = node_load($values['nid'], FALSE);
$node = node_load($values['nid']);
$langcode = LANGUAGE_NONE;
$node->title = $values['title'];
$node->book['link_title'] = $values['title'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment