diff --git a/modules/node/node.module b/modules/node/node.module index 67990084c44a05316b095b348afb0b42ac862170..f7cafdbd5c57af5fbe7a9c4d76a404cf9ac7a09b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -3222,9 +3222,11 @@ protected function attachLoad(&$nodes) { // 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; }