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

CommentFileSizeAuthor
#2 2953843-2.patch566 bytesquietone

Comments

quietone created an issue. See original summary.

quietone’s picture

Status: Active » Needs review
StatusFileSize
new566 bytes

And a patch

heddn’s picture

Status: Needs review » Reviewed & tested by the community

I 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.

  • bojanz committed 8d7728d on 8.x-2.x authored by quietone
    Issue #2953843 by quietone: Make product body field translatable
    
bojanz’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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