Commit 099d72a9 authored by webchick's avatar webchick

#606472 by peximo and plach: Remove duplicate title field data structure.

parent cc13b347
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment