From 5b99cf58f3245dfd12739b0d2a3e6c062f08b698 Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Thu, 15 Oct 2020 11:33:34 +0200 Subject: [PATCH] remove unnecessary code --- CRM/TwingleCampaign/BAO/CustomField.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()