remove unnecessary code

This commit is contained in:
Marc Michalsky forumZFD 2020-10-15 11:33:34 +02:00
parent 7e386ec7f3
commit 5b99cf58f3
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -230,11 +230,8 @@ class CustomField {
id: $this->id\n id: $this->id\n
group: $this->custom_group_id" group: $this->custom_group_id"
); );
foreach ($this->getSetAttributes() as $var => $attribute) {
$this->$var = NULL;
}
} }
// ... else: log error
else { else {
if ($this->label && $this->custom_group_id) { if ($this->label && $this->custom_group_id) {
\Civi::log() \Civi::log()