Problem/Motivation

The new field creation UI does not allow to create new image fields (plain, non-reuseable image fields, NOT media entity images), when the interface language is not english and the field name is empty.

It works fine in english UI, but does not work in german admin UI.

Steps to reproduce

Does not work:

  1. Go to /de/admin/structure/types/manage/_BUNDLE_/fields/add-field
  2. Do NOT enter a field name
  3. Click on "File upload"
  4. The options "File" and "Image" does not appear below. ❌
  5. (Even adding a field name later on, the page is now in a broken state, the image/file option will never load.)

Works:

  1. Go to /de/admin/structure/types/manage/_BUNDLE_/fields/add-field
  2. Enter a field name FIRST
  3. THEN Click on "File upload"
  4. The options "File" and "Image" immedialtly appear below. ✔

Works:

  1. Go to /en/admin/structure/types/manage/_BUNDLE_/fields/add-field
  2. Click on "File upload"
  3. The options "File" and "Image" immedialtly appear below. ✔
  4. (No matter if or when you enter a field name, the image/file option will always load correctly in english)
CommentFileSizeAuthor
#7 2nd step.jpeg122.18 KBkushagra.goyal
#7 1st step.jpeg115.63 KBkushagra.goyal

Comments

hudri created an issue. See original summary.

hudri’s picture

Issue summary: View changes
hudri’s picture

Issue summary: View changes
hudri’s picture

Issue summary: View changes
cilefen’s picture

Priority: Minor » Major

Version: 10.2.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

kushagra.goyal’s picture

StatusFileSize
new115.63 KB
new122.18 KB

@hudri, I investigated this issue and was unable to reproduce it in Drupal 11. In this version, when adding a new field, users must first select the field type (e.g., Upload field) before specifying the field name (as shown in the attached image). After selecting the field type, the system only then allows defining the field name, along with options for file upload types.

Based on this behavior, the issue appears to be outdated. However, please provide additional context so we can better analyze and identify any potential underlying problems

hudri’s picture

This seems to be fixed meanwhile, at least with german language. It might be worth though to test this with languages not having translations of those fields.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.