diff --git a/CRM/TwingleCampaign/BAO/CustomField.php b/CRM/TwingleCampaign/BAO/CustomField.php index c7f7527..a73ea81 100644 --- a/CRM/TwingleCampaign/BAO/CustomField.php +++ b/CRM/TwingleCampaign/BAO/CustomField.php @@ -230,11 +230,8 @@ class CustomField { id: $this->id\n group: $this->custom_group_id" ); - - foreach ($this->getSetAttributes() as $var => $attribute) { - $this->$var = NULL; - } } + // ... else: log error else { if ($this->label && $this->custom_group_id) { \Civi::log()