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:
- Go to /de/admin/structure/types/manage/_BUNDLE_/fields/add-field
- Do NOT enter a field name
- Click on "File upload"
- The options "File" and "Image" does not appear below. ❌
- (Even adding a field name later on, the page is now in a broken state, the image/file option will never load.)
Works:
- Go to /de/admin/structure/types/manage/_BUNDLE_/fields/add-field
- Enter a field name FIRST
- THEN Click on "File upload"
- The options "File" and "Image" immedialtly appear below. ✔
Works:
- Go to /en/admin/structure/types/manage/_BUNDLE_/fields/add-field
- Click on "File upload"
- The options "File" and "Image" immedialtly appear below. ✔
- (No matter if or when you enter a field name, the image/file option will always load correctly in english)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2nd step.jpeg | 122.18 KB | kushagra.goyal |
| #7 | 1st step.jpeg | 115.63 KB | kushagra.goyal |
Comments
Comment #2
hudriComment #3
hudriComment #4
hudriComment #5
cilefen commentedComment #7
kushagra.goyal commented@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
Comment #8
hudriThis 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.