[Form] Removing excess option in the TimezoneType
This commit is contained in:
parent
c58b05a6d6
commit
df50e2b161
@ -18,17 +18,9 @@ class TimezoneType extends AbstractType
|
||||
{
|
||||
public function getDefaultOptions(array $options)
|
||||
{
|
||||
$defaultOptions = array(
|
||||
'preferred_choices' => array(),
|
||||
return array(
|
||||
'choice_list' => new TimezoneChoiceList(),
|
||||
);
|
||||
|
||||
$options = array_replace($defaultOptions, $options);
|
||||
|
||||
if (!isset($options['choice_list'])) {
|
||||
$defaultOptions['choice_list'] = new TimezoneChoiceList();
|
||||
}
|
||||
|
||||
return $defaultOptions;
|
||||
}
|
||||
|
||||
public function getParent(array $options)
|
||||
|
Reference in New Issue
Block a user