Skip to content

Commit

Permalink
fix(Tinebase/Record): prevent clearing customfields if record has pro…
Browse files Browse the repository at this point in the history
…perty of the same name
  • Loading branch information
pschuele committed Nov 25, 2024
1 parent 66d4a55 commit 499ab2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tine20/Tinebase/Record/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 499ab2b

Please sign in to comment.