Skip to content
Snippets Groups Projects
Commit 593cc888 authored by dpi's avatar dpi
Browse files

Fixed an issue with registrant setting form when a entity type is no longer available.

parent e715f616
No related branches found
No related tags found
No related merge requests found
......@@ -98,11 +98,14 @@ class RegistrantSettingsForm extends ConfigFormBase {
$channels = $this->identityChannelManager->getChannelsForIdentityType($identity_type);
$channels_string = [];
foreach ($channels as $channel) {
$entity_type = $this->entityManager->getDefinition($channel);
$channels_string[] = $entity_type->getLabel();
if ($channel_entity_type = $this->entityManager->getDefinition($channel, FALSE)) {
$channels_string[] = $channel_entity_type->getLabel();
}
}
$entity_type = $this->entityManager->getDefinition($identity_type);
if (!$entity_type = $this->entityManager->getDefinition($identity_type, FALSE)) {
continue;
}
$form['contactables'][$identity_type] = [
'#type' => 'checkbox',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment