diff --git a/src/Element/Registrants.php b/src/Element/Registrants.php index b087c5a..cd36b67 100644 --- a/src/Element/Registrants.php +++ b/src/Element/Registrants.php @@ -287,7 +287,7 @@ public static function processIdentityElement(array &$element, FormStateInterfac '#title' => t('Person type'), '#options' => $for_bundles, '#default_value' => $for_bundle, - '#access' => $change_it, + '#access' => $change_it && count($for_bundles) > 1, '#ajax' => [ 'callback' => [static::class, 'ajaxElementRoot'], 'wrapper' => $ajax_wrapper_id_root,