mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02: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
|
// Re-format date custom fields from Y-m-d
|
||||||
$field_settings =& self::get_array(self::$request->modifications, "{$this->id}[customfields]",true);
|
$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();
|
$link_types = Api\Link::app_list();
|
||||||
foreach($fields as $fname => $field)
|
foreach($fields as $fname => $field)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user