remove static CustomField array

This commit is contained in:
Marc Michalsky forumZFD 2020-09-29 08:44:35 +02:00
parent 8ee0079b37
commit b3b24681e5
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 4 additions and 18 deletions

View file

@ -66,18 +66,14 @@ class CRM_TwingleCampaign_Upgrader extends CRM_TwingleCampaign_Upgrader_Base {
$custom_group['extends_entity_column_value'] = $campaign_type->getValue();
}
}
new Models\CustomGroup($custom_group);
}
foreach (Models\CustomGroup::getCustomGroups() as $custom_group) {
$custom_group->create();
$cg = new Models\CustomGroup($custom_group);
$cg->create();
}
// Create custom fields
foreach ($campaign_info['custom_fields'] as $custom_field) {
new Models\CustomField($custom_field);
}
foreach (Models\CustomField::getCustomFields() as $custom_field) {
$custom_field->create();
$cf = new Models\CustomField($custom_field);
$cf->create();
}
}