The user can submit the field settings form without choosing any content type.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jibran created an issue. See original summary.

jibran’s picture

Here is the patch for the fix. Just needs a test.

jibran’s picture

Status: Active » Needs review
jibran’s picture

Issue summary: View changes
dpi’s picture

Status: Needs review » Needs work
+    $options = array_filter(array_keys($labels[(string) t('Content', [], ['context' => 'Entity type group'])]), function ($entity_type_id) {

Uggo.

+      $form_state->setError($element, t('At lest select one entity type ID.'));

Typo.

Theres also tests asserting this typo.

dpi’s picture

Title: At lest select one entity type ID on field storage setting form » Select at least one entity type ID on field storage setting form
jibran’s picture

This happens when you make one typo and copy paste it everywhere. :D Thanks for the review.

dpi’s picture

Status: Needs review » Reviewed & tested by the community

:D

  • jibran committed 4225e98 on 8.x-2.x
    Issue #2881996 by jibran, dpi: Select at least one entity type ID on...

  • jibran committed a65c821 on 8.x-1.x
    Issue #2881996 by jibran, dpi: Select at least one entity type ID on...
jibran’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.