From 88b138e0d72e3493a56570e4575c5c11e62a1b9b Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sun, 1 Jun 2014 10:35:14 +1000 Subject: [PATCH] Allows empty dropdown arrays --- modules/backend/widgets/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/widgets/Form.php b/modules/backend/widgets/Form.php index ae30fd965..6af9c96a1 100644 --- a/modules/backend/widgets/Form.php +++ b/modules/backend/widgets/Form.php @@ -393,7 +393,7 @@ class Form extends WidgetBase * Simple field with options */ elseif (strlen($fieldType)) { - $fieldOptions = (isset($config['options'])) ? $config['options'] : []; + $fieldOptions = (isset($config['options'])) ? $config['options'] : null; $studlyField = studly_case(strtolower($fieldType)); if (method_exists($this, 'eval'.$studlyField.'Options'))