DataTypeDatalist: rename datalist field to datalist_id

This commit is contained in:
Alexander Fuhr 2015-07-28 12:03:04 +02:00
parent f5e8b5f8f8
commit 45049e45da
1 changed files with 5 additions and 6 deletions

View File

@ -16,14 +16,13 @@ class DataTypeDatalist extends DataTypeHook
public static function addSettingsFormFields(QuickForm $form)
{
$form->addElement('select', 'datalist', array(
$db = $form->getDb();
$form->addElement('select', 'datalist_id', array(
'label' => 'List name',
'required' => true,
'multiOptions' => array(
null => '- please choose -',
'Foo' => 'Dummy Foo',
'Bar' => 'Dummy Bar'
),
'multiOptions' => array(null => '- please choose -') +
$db->enumDatalist(),
));
return $form;
}