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 |
Jump to:
Description
1005: '#default_value' => $field['widget']['type'] ? $field['widget']['type'] : $default_widget,$default_widget is never assigned with anything.

#1
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
Automatically closed -- issue fixed for 2 weeks with no activity.