diff --git a/src/Entity/Form/GroupTypeForm.php b/src/Entity/Form/GroupTypeForm.php index a55ce3d..202967e 100644 --- a/src/Entity/Form/GroupTypeForm.php +++ b/src/Entity/Form/GroupTypeForm.php @@ -238,7 +238,9 @@ class GroupTypeForm extends BundleEntityFormBase { $add_role_url = Url::fromRoute('entity.group_role.add_form', ['group_type' => $type->id()]); $t_args = ['@url' => $add_role_url->toString()]; $description = $this->t('You do not have any custom group roles yet, create one here.', $t_args); - $form['creator_roles']['#description'] .= "
$description"; + if (isset($form['creator_roles']['#description'])) { + $form['creator_roles']['#description'] .= "
$description"; + } } }