diff options
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index bb37a8953..9aee19f05 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -443,9 +443,9 @@ function node_update_7006(&$context) { if (!isset($context['total'])) { // Initial invocation. - // Re-save node types to create title and body field instances. + // Re-save node types to create body field instances. foreach ($node_types as $type => $info) { - if ($info->has_title || $info->has_body) { + if ($info->has_body) { node_type_save($info); } } @@ -490,7 +490,7 @@ function node_update_7006(&$context) { 'vid' => $revision->vid, 'type' => $revision->type, ); - $node->title[LANGUAGE_NONE][0]['value'] = $revision->title; + $node->title = $revision->title; if (!empty($revision->teaser) && $revision->teaser != text_summary($revision->body)) { $node->body[LANGUAGE_NONE][0]['summary'] = $revision->teaser; } |