diff --git a/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php b/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php index fcea82c..2d3c284 100644 --- a/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php +++ b/core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php @@ -199,7 +199,7 @@ public function settingsForm(array &$form, array &$form_state, $has_data) { // @todo Inject entity storage once typed-data supports container injection. $comment_types = CommentType::loadMultiple(); - $options = array('' => t('Create new')); + $options = array('new_comment_type' => t('Create new')); $entity_type = $this->getEntity()->getEntityTypeId(); foreach ($comment_types as $comment_type) { if ($comment_type->getTargetEntityTypeId() == $entity_type) { @@ -220,7 +220,7 @@ public function settingsForm(array &$form, array &$form_state, $has_data) { '#title' => t('Create new comment type'), '#states' => array( 'visible' => array( - ':input[name="field[settings][comment_type]"]' => array('value' => 'new'), + ':input[name="field[settings][comment_type]"]' => array('value' => 'new_comment_type'), ), ), );