Problem/Motivation

`$migration->getMigrationTags()` can return null if a custom migration doesn't provide tags. The way this is currently called in `insert_migrate_prepare_row` can result in a fatal error.

Steps to reproduce

Create a custom migration that doesn't specify any migration tags. Attempt to run a migration.

Proposed resolution

Patch attached.

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

CommentFileSizeAuthor
fatal-migration-error-1.patch585 bytesblakehall

Issue fork insert-3360731

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

blakehall created an issue. See original summary.

keshav.k made their first commit to this issue’s fork.

  • Snater committed d901dc43 on 8.x-2.x authored by blakehall
    Issue #3360731 by blakehall: Fatal error if migration tags are empty
    
snater’s picture

Status: Needs review » Fixed

Thanks for the patch!

Status: Fixed » Closed (fixed)

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