From 45049e45dab8f8c389bfb4aaab2fb17839a2892e Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Tue, 28 Jul 2015 12:03:04 +0200 Subject: [PATCH] DataTypeDatalist: rename datalist field to datalist_id --- library/Director/DataType/DataTypeDatalist.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/library/Director/DataType/DataTypeDatalist.php b/library/Director/DataType/DataTypeDatalist.php index b151ecb9..6bba088e 100644 --- a/library/Director/DataType/DataTypeDatalist.php +++ b/library/Director/DataType/DataTypeDatalist.php @@ -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; }