- π¦πΊAustralia mstrelan
This could use more detailed steps to reproduce, starting from "Install Drupal". The patch also needs test coverage.
The ContextAwarePluginAssignmentTrait::addContextAssignmentElement()
, when it collects $options, can end up with empty options in certain circumstances. This ends up displaying an empty select list on the block form.
Two examples where [view_mode: null]
is only option:
1. Create views block with a contextual filter on a plain text field. Add the views block via layout builder and form shows an empty select list.
2. Create views block with a contextual filter on Taxonomy term: Name via a relationship to a term. Add the views block via layout builder and form shows an empty select list.
Filter out null $options
in addContextAssignmentElement()
Create patch to adjust ContextAwarePluginAssignmentTrait::addContextAssignmentElement()
Does not create select list for contextual filters on block form on null options.
none
none
Needs work
11.0 π₯
Last updated
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This could use more detailed steps to reproduce, starting from "Install Drupal". The patch also needs test coverage.