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.
Problem/Motivation
FieldConfigStorageBase::mapToStorageRecord()
calls $class::fieldSettingsFromConfigData()
instead of $class::fieldSettingsToConfigData()
:/
Proposed resolution
Fix it.
Remaining tasks
Write some tests.
User interface changes
Nope.
API changes
Nope.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2437785-3.patch | 6.88 KB | amateescu |
#3 | 2437785-3-test-only.patch | 6.16 KB | amateescu |
#1 | 2437785.patch | 744 bytes | amateescu |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedThis is the fix.
Comment #2
BerdirHow is this not exploding for list field types?
Comment #3
amateescu CreditAttribution: amateescu commentedBecause
ListItemBase
implements onlystorageSettingsToConfigData()
andstorageSettingsFromConfigData()
and this bug is forfieldSettingsToConfigData()/fieldSettingsFromConfigData()
:)Wrote some tests for all of them.
Comment #5
yched CreditAttribution: yched commentedYay - we already had another issue to fix that wrong call, but it was still "needs tests". Will mark it as duplicate if I can dig it back :-)
Comment #6
amateescu CreditAttribution: amateescu commentedThis is the issue: #2343483: Doc cleanup after FieldConfig
Comment #7
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 74f9435 and pushed to 8.0.x. Thanks!
Comment #9
yched CreditAttribution: yched commented@amateescu : thanks :-) Reuploaded the patch over there, it's now just a minor doc fix.