Problem/Motivation
Ran into a problem when working on migrating Ubercart translated products where the translation for the body field was being migrated to the body field for all languages on the destination site. Actually the migration of the product worked correctly but when the migration of the translated products ran it would add the body field translation correctly and overwrite the default language body field.
This happens because the body field is not translatable by default. When one creates a new product type the body field is not translatable.
And since the body field is not in the source field tables it is rather difficult for the migration to make it translatable as part of the migration process.
The fix in commerce migrate is to set the body field translatable in the destination plugin but I think it should really be done in commerce.
Refer to #2948526: Product body field not set to translatable
Proposed resolution
Add setTranslatable(TRUE) in commerce_product_add_body_field
Remaining tasks
Write patch
review
Commit
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2953843-2.patch | 566 bytes | quietone |
Comments
Comment #2
quietone commentedAnd a patch
Comment #3
heddnI don't think we need tests on this. And we will have test coverage, just down in commerce migrate. So, this looks good to me.
Comment #5
bojanz commentedThanks!