diff --git a/libraries/joomla/form/form.php b/libraries/joomla/form/form.php index e62efd2e66ade..45bccc667ee29 100644 --- a/libraries/joomla/form/form.php +++ b/libraries/joomla/form/form.php @@ -242,16 +242,6 @@ public function filter($data, $group = null) { $output->set($key, $this->filterField($field, $input->get($key, (string) $field['default']))); } - - // Get the JFormField object for this field, only it knows if it is supposed to be multiple. - $jfield = $this->getField($name, $group); - - // Fields supporting multiple values must be stored as empty arrays when no values are selected. - // If not, they will appear to be unset and then revert to their default value. - if ($jfield && $jfield->multiple && !$output->exists($key)) - { - $output->set($key, array()); - } } return $output->toArray();