mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix doubled single customfields when one custom field had options from file
This commit is contained in:
parent
7512e105da
commit
4e3c6eaf39
@ -240,9 +240,9 @@ class Customfields extends Transformer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// need to encode values/select-options to keep their order
|
// need to encode values/select-options to keep their order
|
||||||
foreach($customfields as &$data)
|
foreach($customfields as $cf_name => &$data)
|
||||||
{
|
{
|
||||||
if (!empty($data['values']))
|
if(!empty($fields[$cf_name]) && !empty($data['values']))
|
||||||
{
|
{
|
||||||
// Full URL for options from file
|
// Full URL for options from file
|
||||||
if(!empty($data['values']['@']) && strpos($data['values']['@'], '/') == 0 && !str_contains($data['values']['@'], 'webdav.php') &&
|
if(!empty($data['values']['@']) && strpos($data['values']['@'], '/') == 0 && !str_contains($data['values']['@'], 'webdav.php') &&
|
||||||
|
Loading…
Reference in New Issue
Block a user