diff --git a/core/modules/book/lib/Drupal/book/BookManager.php b/core/modules/book/lib/Drupal/book/BookManager.php index e87223b..f77f591 100644 --- a/core/modules/book/lib/Drupal/book/BookManager.php +++ b/core/modules/book/lib/Drupal/book/BookManager.php @@ -660,8 +660,7 @@ public function bookTreeOutput(array $tree) { $element['#attributes']['class'] = $class; $element['#title'] = $data['link']['title']; $node = \Drupal::entityManager()->getStorageController('node')->load($data['link']['nid']); - $uri = $node->uri(); - $element['#href'] = $uri['path']; + $element['#href'] = $node->url(); $element['#localized_options'] = !empty($data['link']['localized_options']) ? $data['link']['localized_options'] : array(); $element['#below'] = $data['below'] ? $this->bookTreeOutput($data['below']) : $data['below']; $element['#original_link'] = $data['link']; @@ -846,7 +845,7 @@ public function saveBookLink(array $link, $new) { ) + $this->getBookParents($link, (array) $this->loadBookLink($link['pid'], FALSE))) ->execute(); // Check the has_children status of the parent, while excluding this item. - $this->updateParentalStatus($link); + return $this->updateParentalStatus($link); } else { $original = $this->loadBookLink($link['nid'], FALSE);