Experienced with a text_list field:
* have an empty field in the source
* migrate it

Result: destination field seems empty, but the field label is shown.

Debugging shows that the field is malformed, containing a single NULL entry.

Array
(
    [und] => Array
        (
            [0] => Array
                (
                    [value] => 
                )

        )

)

while manual saving gives:

Array
(
)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

axel.rutz created an issue. See original summary.

geek-merlin’s picture

Patch flying in that fixes this for me.

pifagor’s picture

Status: Needs review » Reviewed & tested by the community

  • pifagor committed f8a7cb6 on 7.x-2.x authored by axel.rutz
    Issue #2769217 by axel.rutz, pifagor: Migrated empty field malformed (...
pifagor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

vinmassaro’s picture

@geek-merlin I have posted a patch to address an issue caused by this change where 0 source values are no longer being mapped to text_list fields: #3164232: Regression on text_list fields caused by change in #2769217

Can you review and make sure it still works for you? Thanks!

joseph.olstad’s picture