* All apps: multiselect custom-field switches to single select after submit

This commit is contained in:
Ralf Becker 2018-02-28 13:41:13 +01:00
parent c1e8ac6324
commit a799abb0a0

View File

@ -327,7 +327,7 @@ class Customfields extends Transformer
if (substr($type, 0, 7) !== 'select-' && $type != 'ajax_select') break;
// fall-through for all select-* widgets
case 'select':
$this->attrs['multiple'] = $field['rows'] > 1;
$widget->attrs['multiple'] = $field['rows'] > 1;
// fall through
case 'radio':
if (count($field['values']) == 1 && isset($field['values']['@']))
@ -390,7 +390,7 @@ class Customfields extends Transformer
$customfields =& $this->getElementAttribute(self::GLOBAL_VALS, 'customfields');
if(is_array($value_in))
{
foreach($value_in as $field => $value)
foreach(array_keys($value_in) as $field)
{
$field_settings = $customfields[$fname=substr($field,1)];