diff --git a/tine20/Tinebase/Record/Abstract.php b/tine20/Tinebase/Record/Abstract.php index 321b2011ab..82e53d1274 100644 --- a/tine20/Tinebase/Record/Abstract.php +++ b/tine20/Tinebase/Record/Abstract.php @@ -402,7 +402,7 @@ public function setFromArray(array &$_data) if ($this->has('customfields')) { $application = Tinebase_Application::getInstance()->getApplicationByName($this->_application); $customFields = Tinebase_CustomField::getInstance()->getCustomFieldsForApplication($application, get_class($this))->name; - $recordCustomFields = array(); + $recordCustomFields = $_data['customfields'] ?? []; } else { $customFields = array(); }