From 099d72a917b46431eab4f6f0703d63acf6f39be5 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 5 Nov 2009 16:13:21 +0000 Subject: #606472 by peximo and plach: Remove duplicate title field data structure. --- modules/node/node.module | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/node/node.module') 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; } -- cgit v1.2.3