content.admin.inc line 1005: $default_widget is never initialized

mattyoung - July 4, 2009 - 07:11
Project:Content Construction Kit (CCK)
Version:6.x-2.4
Component:content.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

1005:          '#default_value' => $field['widget']['type'] ? $field['widget']['type'] : $default_widget,

$default_widget is never assigned with anything.

#1

yched - July 4, 2009 - 11:58
Status:active» fixed

Indeed. Looks like a leftover from a previous UI iteration, but I can't really track it back.
I don't think I see how, in the current UI, this form could be displayed without $field['widget']['type'] being actually set, but I committed a fix.

#2

System Message - July 18, 2009 - 12:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.