DataTypeDatalist: rename datalist field to datalist_id
This commit is contained in:
parent
f5e8b5f8f8
commit
45049e45da
|
@ -16,14 +16,13 @@ class DataTypeDatalist extends DataTypeHook
|
||||||
|
|
||||||
public static function addSettingsFormFields(QuickForm $form)
|
public static function addSettingsFormFields(QuickForm $form)
|
||||||
{
|
{
|
||||||
$form->addElement('select', 'datalist', array(
|
$db = $form->getDb();
|
||||||
|
|
||||||
|
$form->addElement('select', 'datalist_id', array(
|
||||||
'label' => 'List name',
|
'label' => 'List name',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(null => '- please choose -') +
|
||||||
null => '- please choose -',
|
$db->enumDatalist(),
|
||||||
'Foo' => 'Dummy Foo',
|
|
||||||
'Bar' => 'Dummy Bar'
|
|
||||||
),
|
|
||||||
));
|
));
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue