diff --git a/core/lib/Drupal/Core/TypedData/Type/Map.php b/core/lib/Drupal/Core/TypedData/Type/Map.php index 4bb802d..d2bd160 100644 --- a/core/lib/Drupal/Core/TypedData/Type/Map.php +++ b/core/lib/Drupal/Core/TypedData/Type/Map.php @@ -239,5 +239,6 @@ public function applyDefaultValue($notify = TRUE) { foreach ($this->getProperties() as $property) { $property->applyDefaultValue(FALSE); } + return $this; } } diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index ef2865f..ae02f4c 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -334,7 +334,7 @@ function forum_node_presave(EntityInterface $node) { $langcode = key($node->taxonomy_forums); if (!empty($node->taxonomy_forums[$langcode])) { $node->forum_tid = $node->taxonomy_forums[$langcode][0]['tid']; - // Only do a shadow copy check if this is not a new node. + // Only do a shadow copy if this is not a new node. if (!$node->isNew()) { $old_tid = db_query_range("SELECT f.tid FROM {forum} f INNER JOIN {node} n ON f.vid = n.vid WHERE n.nid = :nid ORDER BY f.vid DESC", 0, 1, array(':nid' => $node->nid))->fetchField(); if ($old_tid && isset($node->forum_tid) && ($node->forum_tid != $old_tid) && !empty($node->shadow)) { diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php index ef07e78..f8e35c4 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -1139,6 +1139,6 @@ public function onChange($property_name) { * Implements \Drupal\Core\TypedData\TypedDataInterface::applyDefaultValue(). */ public function applyDefaultValue($notify = TRUE) { - $this->storage->applyDefaultValue($notify); + return $this->storage->applyDefaultValue($notify); } }