mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Api: Fix customfield field attribute was not always applied
If attribute was set, sometimes it was overwritten and all cf were used. Happened trying to get only some addressbook custom fields showing on registration page
This commit is contained in:
parent
173b9bdfda
commit
e917514713
@ -176,7 +176,7 @@ class Customfields extends Transformer
|
||||
}
|
||||
|
||||
// Remove filtered fields
|
||||
if (!empty($field_filters) && in_array($key, $negate_fields) && in_array($key, $field_filters))
|
||||
if(!empty($field_filters) && !in_array($key, $field_filters) || !empty($negate_fields) && in_array($key, $negate_fields))
|
||||
{
|
||||
unset($fields[$key]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user