summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngie Byron2009-11-05 16:13:21 (GMT)
committerAngie Byron2009-11-05 16:13:21 (GMT)
commit099d72a917b46431eab4f6f0703d63acf6f39be5 (patch)
tree05f480a7c2854bd0fa4ae6abbba159329941dc8a
parentcc13b34703fd45747b0b7da96a5cda446719ebc6 (diff)
#606472 by peximo and plach: Remove duplicate title field data structure.
-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 6799008..f7cafdb 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;
}