Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2013 at 20:08 UTC
Updated:
8 Oct 2013 at 23:01 UTC
Atom references are ignored when trying to migrate them. This is because MigrateAtomReferenceFieldHandler is registered with key 'field_handlers' (note the underline) instead of 'field handlers' in the migrate info.
See migrate.module (of latest module Migrate 7.x-2.5) line 284:
$handler_key = 'field handlers';
The attached patch fixes that.
| Comment | File | Size | Author |
|---|---|---|---|
| scald-migration-atom-reference-field-handler-fix.patch | 525 bytes | jox |
Comments
Comment #1
jox commentedComment #2
jcisio commentedIt was a blind copy from Entity Reference module. Remove that line and we don't have any problem. As we subsclass MigrateFieldHandler, we don't need to declare the "field handlers" key. Migrate finds it automatically with reflection.
PS: but I add that line again so that we are future proof when Migrate has auto registration disabled by default.