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

$default_widget is never assigned with anything.

Comments

yched’s picture

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.

Status: Fixed » Closed (fixed)

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