Api: Avoid overwriting field settings if they were set via setElementAttribute

This commit is contained in:
nathan 2023-10-23 14:18:12 -06:00
parent 007fd09515
commit 9c1dd164a1

View File

@ -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)
{