Skip to content

[BUG] Blocks disappear after being edited because of visibility constraint "node_has_ancestor" #2291

@bstrakosova

Description

@bstrakosova

Hi, I hope someone can help me with this issue:

Everytime I open the Configure block form of any block at Block layout page and save the form, it affects the visibility of the block. It seems like the block then only shows up on the front page. When I export the config of the block, I see this code at the end of the config in the "visibility" section:

node_has_ancestor: id: node_has_ancestor negate: 0 ancestor_nids: false parent_reference_field: field_media_of context_mapping: node: '@node.node_route_context:node'

When I remove the code and reimport the config, the Block behaves normally and is displayed where it should based on its visibility settings.

For example, when I go to block Main navigation on the Block layout page, click on Configure and then Save block, the Main navigation block disappears from all pages except from the front page.

Which version of Islandora are you using?
2.11.0

Which method did you use to install your Islandora instance? (manually, ISLE, playbook, etc.)
playbook

-->

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugidentifies a problem in the software with clear steps to reproduce

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions