mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Rmove fields for none private cutomfields when name refers to a single custom field
This commit is contained in:
parent
48291c6016
commit
de65d91dc7
@ -170,6 +170,14 @@ class Customfields extends Transformer
|
||||
{
|
||||
unset($fields[$key]);
|
||||
}
|
||||
|
||||
// Rmove fields for none private cutomfields when name refers to a single custom field
|
||||
$matches = null;
|
||||
if (($pos=strpos($form_name,self::$prefix)) !== false &&
|
||||
preg_match($preg = '/'.self::$prefix.'([^\]]+)/',$form_name,$matches) && !isset($fields[$name=$matches[1]]))
|
||||
{
|
||||
unset($fields[$key]);
|
||||
}
|
||||
}
|
||||
// check if name refers to a single custom field --> show only that
|
||||
$matches = null;
|
||||
|
Loading…
Reference in New Issue
Block a user