mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Api: Avoid overwriting field settings if they were set via setElementAttribute
This commit is contained in:
parent
007fd09515
commit
9c1dd164a1
@ -273,7 +273,10 @@ class Customfields extends Transformer
|
||||
|
||||
// Re-format date custom fields from Y-m-d
|
||||
$field_settings =& self::get_array(self::$request->modifications, "{$this->id}[customfields]",true);
|
||||
if (true) $field_settings = array();
|
||||
if(!is_array($field_settings))
|
||||
{
|
||||
$field_settings = array();
|
||||
}
|
||||
$link_types = Api\Link::app_list();
|
||||
foreach($fields as $fname => $field)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user