mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:49:10 +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
1b552cd9c2
commit
5d4fdd67c6
@ -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