Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow up for #552604: Adding new fields leads to a confusing "Field settings" form
Problem/Motivation
A like like: "Body has no field settings." shows on the global field settings tab ... when there are settings there.
Proposed resolution
None yet.
Remaining tasks
- Figure out what that line really means or what it was intended for.
- Propose a solution.
- Implement the change, provide patch
- review patch
- A screenshot with the fix would be nice.
User interface changes
Not really.
API changes
No api changes anticipated.
Related issues
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal-has_no_field_settings-1876134-3.patch | 754 bytes | YesCT |
#1 | nosettings-s01-creation-2012-12-29_0259.png | 86.46 KB | YesCT |
Comments
Comment #1
YesCT CreditAttribution: YesCT commentedThe creation of the field and editing of the field settings is similar.
Comment #2
YesCT CreditAttribution: YesCT commentedSince #552604-99: Adding new fields leads to a confusing "Field settings" form added cardinality setting (to every field?)
I think there are no fields that will appear to have no field settings. (All fields will at least have the cardinality setting.)
Here is the bit that adds the note about no field settings:
so maybe it's really meaning... "has no field settings, added by the field module, that can be changed" ?
Comment #3
YesCT CreditAttribution: YesCT commentedIf it's assumed that every field will be selected the number of allowed values (they will all have the cardinality setting)... then I think we can just take out the line that checks for no settings.
If someone can give steps to reproduce adding a field that has no global settings, please add the steps in a comment. :) I could not get one.
How would contrib control the cardinality setting being there or not? Could contrib provide a field or widget where it would not make sense to allow multiple values?
Comment #4
YesCT CreditAttribution: YesCT commentedComment #6
YesCT CreditAttribution: YesCT commented#3: drupal-has_no_field_settings-1876134-3.patch queued for re-testing.
Comment #7
tstoecklerYes, that looks correct. Could probably use a look-over by someone @yched-ish :-) for any edge cases that I didn't think of, where this sentence still makes sense. It seems absolutely senseless to me, in the current form.
Comment #8
yched CreditAttribution: yched commentedAgreed, displaying this message males no sense now, there will always be something on that screen, unless some module form_alters() the cardinality select out, in which case the UX WTF of an empty screen is that module's business.
Comment #9
YesCT CreditAttribution: YesCT commentedas soon as this gets in, #1876122: Missing new line near enable/disable translation on global field settings tab should be closed.
Comment #10
YesCT CreditAttribution: YesCT commented#3: drupal-has_no_field_settings-1876134-3.patch queued for re-testing.
Comment #11
catchLooks great. Committed/pushed to 8.x.
Comment #12.0
(not verified) CreditAttribution: commentedUpdated issue summary adding screenshot.