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
The $process property on the Migration entity should always be an array otherwise it can lead to fatal errors when calling getProcess because getProcessNormalized() is rightly type-hinted as an array. This happens in the UI when creating new migrations.
Proposed resolution
Initialize it to an array.
Remaining tasks
n/a
User interface changes
n/a
API changes
n/a
Data model changes
n/a
Comment | File | Size | Author |
---|---|---|---|
init-process.patch | 464 bytes | benjy | |
Comments
Comment #2
chx CreditAttribution: chx at Smartsheet commentedIt's already typehinted and used as an array. This couldn't be more trivial.
Comment #3
xjmSince reproducing this depends on the UI, there's not really a clear case to add test coverage in core. Hopefully test coverage is added to that module. :) Tagging for a followup for that.
Committed to 8.1.x and cherry-picked to 8.0.x. Thanks!
Comment #6
benjy CreditAttribution: benjy at PreviousNext commentedIt was the Migrate UI tests that actually caught this issue so we have coverage there :)