Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
099d72a9
Commit
099d72a9
authored
Nov 05, 2009
by
Angie Byron
Browse files
#606472
by peximo and plach: Remove duplicate title field data structure.
parent
cc13b347
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
099d72a9
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment