summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-05 16:13:21 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-05 16:13:21 +0000
commit099d72a917b46431eab4f6f0703d63acf6f39be5 (patch)
tree05f480a7c2854bd0fa4ae6abbba159329941dc8a /modules
parentcc13b34703fd45747b0b7da96a5cda446719ebc6 (diff)
downloadbrdo-099d72a917b46431eab4f6f0703d63acf6f39be5.tar.gz
brdo-099d72a917b46431eab4f6f0703d63acf6f39be5.tar.bz2
#606472 by peximo and plach: Remove duplicate title field data structure.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 67990084c..f7cafdbd5 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -3222,9 +3222,11 @@ class NodeController extends DrupalDefaultEntityController {
// object type specific callback.
$typed_nodes = array();
foreach ($nodes as $id => $object) {
- if (isset($object->title)) {
- $object->title = array(FIELD_LANGUAGE_NONE => array(array('value' => $object->title)));
- }
+ // The value loaded in $object->title is the one stored in {node}.title,
+ // which is used for building list queries. By unsetting it here, we
+ // allow DrupalDefaultEntityController:attachLoad() to populate it along
+ // with all the other field values for consistency.
+ unset($object->title);
$typed_nodes[$object->type][$id] = $object;
}