Closed (cannot reproduce)
Project:
Drupal core
Version:
7.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jan 2010 at 17:21 UTC
Updated:
24 Nov 2010 at 14:29 UTC
Define a new node type with has_label FALSE:
'vub_question' => array(
'type' => 'vub_question',
'name' => $t('Question'),
'base' => 'node_content',
'description' => $t('A <em>question</em> defines a quandary that begs for users to answer.'),
'has_title' => FALSE,
'body_label' => $t('Question'),
),
Create a node of this type.
Notice: Undefined property: stdClass::$title in template_preprocess_node() (line 1368 of node.module).
Comments
Comment #1
morbus iffNotice: Undefined property: stdClass::$title in node_build_content() (line 1252 node.module) too.
Comment #2
morbus iffNotice: Undefined property: stdClass::$title in node_admin_nodes() (line 485 of node.admin.inc).
Comment #3
dpovshed commentedHi Morbus,
I took a look at the submitted bug with the current 7.x-dev version. I assumed that in your subject you referred to 'has_title' not to 'has_label'.
At the moment all $node objects have empty string as a title, if they created with has_title=FALSE.
So in all three functions you mentioned no warnings created.
Bug has been fixed by natural evolution of Drupal 7.x :)