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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amateescu’s picture

Status: Active » Needs review
Issue tags: +Needs tests
FileSize
744 bytes

This is the fix.

Berdir’s picture

How is this not exploding for list field types?

amateescu’s picture

Issue tags: -Needs tests
FileSize
6.16 KB
6.88 KB

How is this not exploding for list field types?

Because ListItemBase implements only storageSettingsToConfigData() and storageSettingsFromConfigData() and this bug is for fieldSettingsToConfigData()/fieldSettingsFromConfigData() :)

Wrote some tests for all of them.

The last submitted patch, 3: 2437785-3-test-only.patch, failed testing.

yched’s picture

Status: Needs review » Reviewed & tested by the community

Yay - 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 :-)

amateescu’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This 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!

  • alexpott committed 74f9435 on 8.0.x
    Issue #2437785 by amateescu: FieldConfigStorageBase::mapToStorageRecord...
yched’s picture

@amateescu : thanks :-) Reuploaded the patch over there, it's now just a minor doc fix.

Status: Fixed » Closed (fixed)

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