diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 79a092cbbc98dcb7c26e8771a419c7e06be0207e..e0a2f1e8619299de4cb6198d749d4f33613d0451 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -708,6 +708,8 @@ class DynamicListItem extends VerySimpleModel { } class SelectionField extends FormField { + static $widget = 'SelectionWidget'; + function getListId() { list(,$list_id) = explode('-', $this->get('type')); return $list_id; @@ -719,10 +721,6 @@ class SelectionField extends FormField { return $this->_list; } - function getWidget() { - return new SelectionWidget($this); - } - function parse($value) { return $this->to_php($value); }