Steps to reproduce:

  • Create a view with a block display mode.
  • Make the title of the block and the block name different.
  • Create a ds block field using that view and check "Use block title as the field label".
  • Add the block field to an entity's display and make the Name visible.
  • Create appropriate sample data, view the output. The block name, which is only supposed to be the internal name, will display as the title

View configuration
View configuration

Before patch
Before patch

After patch
After patch

Patch coming in first comment.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

floydm created an issue. See original summary.

floydm’s picture

floydm’s picture

Status: Active » Needs review
FileSize
9.8 KB
9.57 KB

Adding a test for this change and a test block view display.

Note that I imported views.view.ds-testing.yml into a clean install running the current Drupal 8.0.x branch, added the block display mode, and reexported the views.view.ds-testing.yml file. A few additional changes were included in the test view export other than just adding the block display. As far I as I know these changes reflect the current state of views exporting and are appropriate to include. Let me know if I am mistaken.

aspilicious’s picture

You're right, but is views_ui needed for the test?

floydm’s picture

No, views_ui is not required. Nor is field_ui or taxonomy.

Patch rerolled with those modules removed.

aspilicious’s picture

Status: Needs review » Reviewed & tested by the community

Code looks good, I'll test this today.

aspilicious’s picture

Status: Reviewed & tested by the community » Fixed

Thnx!

  • aspilicious committed 2e88cd1 on 8.x-2.x authored by floydm
    Issue #2650470 by floydm: Block fields use incorrect title override when...

Status: Fixed » Closed (fixed)

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