Invalid display 'system'; display plugin not loaded unless admin_views module installed

Created on 28 December 2022, almost 2 years ago
Updated 17 January 2023, almost 2 years ago

Problem/Motivation

README states

"Included in this package is the Admin Views System Display module, which will be
automatically installed when Administration Views module itself is installed. It
may also be used on its own, should a site want to override system pages without
needing to use the included default displays."

However, if admin_views is uninstalled the "system" display plugin is no longer loaded.

In commit https://git.drupalcode.org/project/admin_views/-/commit/797c11529d88ab83... for issue #2411193: Move 'system' display plugin to a submodule β†’ the function admin_views_views_plugins() was renamed to admin_views_system_display_views_plugins(), however the file name was not changed from admin_views.views.inc to admin_views_system_display.views.inc.

Steps to reproduce

Via UI:

Clone a default admin_views views e.g. Administration: Nodes.
Uninstall admin_views module.
Attempt to edit cloned view via UI, views ui will be blank.
List views plugins via CLI e.g. drush php:

$plugins = views_plugin_list();
$plugins['display:system']; // "module" property will be empty, expect "module" => "views"

Proposed resolution

Rename file admin_views.views.inc to admin_views_system_display.views.inc.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lwalley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024