forked from extern/egroupware
* All apps: multiselect custom-field switches to single select after submit
This commit is contained in:
parent
c1e8ac6324
commit
a799abb0a0
@ -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)];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user