When migrating a site from D7 to D8, my custom block showed no content. I thought it was just a problem with displaying the content, but when I tried to edit the block content there was no body field.

It turns out the body field is just set to disabled on both "manage display" and "manage form display."

Comments

rocketeerbkw created an issue. See original summary.

rocketeerbkw’s picture

I added a new migration template to fix (I think) the form display issue.

rocketeerbkw’s picture

This patch adds a migration template to fix the manage display issue.

Status: Needs review » Needs work

The last submitted patch, 3: 2724903-3-migrate_block_body_disabled.patch, failed testing.

rocketeerbkw’s picture

Status: Needs work » Needs review
FileSize
2.81 KB

Fixing the tests.

Status: Needs review » Needs work

The last submitted patch, 5: 2724903-5-migrate_block_body_disabled.patch, failed testing.

rocketeerbkw’s picture

Status: Needs work » Needs review
FileSize
2.8 KB

Had a typo in the last patch.

mikeryan’s picture

Issue tags: +Needs tests
rocketeerbkw’s picture

I changed the "manage display" migration to hide the label by default and added tests for "manage display" and "manage form display."

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mikeryan’s picture

Version: 8.3.x-dev » 8.2.x-dev
Status: Needs review » Reviewed & tested by the community

Looks good!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 9: 2724903-9-migrate_block_body_disabled.patch, failed testing.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.