When a view uses a BVB block display, the style and row plugins are always initialized with the options of the default display rather than the options configured for the specific BVB display. This means any style or row options configured on the BVB display are silently ignored at render time.

Issue fork views_bvb-3606577

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

valegole created an issue. See original summary.

valegole’s picture

Status: Active » Needs review
hydra’s picture

Pushed an alternative to !2.

!2 resets style_plugin/rowPlugin after the pollution happens. This one avoids
the pollution entirely: StyleOption/RowOption now resolve their fallback id via
the display's own getPlugin() instead of view->getStyle()/initStyle(), so the
shared view's cached plugins are left alone and defineOptions() stays clean.

Added a regression test.

Can you test if this solves the issue for you?

valegole’s picture

Status: Needs review » Reviewed & tested by the community

hydra changed the visibility of the branch 3606577-style-and-row to hidden.

  • hydra committed 9ded0475 on 1.x
    fix: #3606577 Style and row plugin options use default display values...
hydra’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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