Skip to content

Undefined view in contextual links info for core views #35

@bradbulger

Description

@bradbulger

Running Backdrop 1.17.0 and Nodequeue 2.3.0, I'm getting undefined index errors from several core views like user_admin

Notice: Undefined index: view in nodequeue_contextual_links_view_alter() (line 538 of /path/to/site/modules/contrib/nodequeue/nodequeue.module

The #contextual_links element has view info, but $element['#element']['#views_contextual_links_info']['views_ui'] does not have a View object, only location, view name, and display ID.

That View object was removed in backdrop/backdrop-issues#1155. I couldn't find any other reference to 'nodequeue_nodes_node' but maybe that relationship name is constructed somewhere else?

So I don't know what circumstance the code is supposed to be handling, to see how to do it now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions