mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
* 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;
|
if (substr($type, 0, 7) !== 'select-' && $type != 'ajax_select') break;
|
||||||
// fall-through for all select-* widgets
|
// fall-through for all select-* widgets
|
||||||
case 'select':
|
case 'select':
|
||||||
$this->attrs['multiple'] = $field['rows'] > 1;
|
$widget->attrs['multiple'] = $field['rows'] > 1;
|
||||||
// fall through
|
// fall through
|
||||||
case 'radio':
|
case 'radio':
|
||||||
if (count($field['values']) == 1 && isset($field['values']['@']))
|
if (count($field['values']) == 1 && isset($field['values']['@']))
|
||||||
@ -390,7 +390,7 @@ class Customfields extends Transformer
|
|||||||
$customfields =& $this->getElementAttribute(self::GLOBAL_VALS, 'customfields');
|
$customfields =& $this->getElementAttribute(self::GLOBAL_VALS, 'customfields');
|
||||||
if(is_array($value_in))
|
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)];
|
$field_settings = $customfields[$fname=substr($field,1)];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user