"Use the administration theme" checkbox is appearing in unrelated forms

Created on 9 August 2025, 21 days ago

Problem/Motivation

"Use the administration theme" checkbox is appearing in unrelated options forms.

Steps to reproduce

Create an HTMX view display.
Click on any option. For example, Title, Exposed Form, or any other link in the View config UI as shown in the screenshot.

Proposed resolution

In src/Plugin/views/display/Htmx.php, in the buildOptionsForm method, restrict the checkbox field to use_admin_theme.

  public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);

    // Get section value
+    $section = $form_state->get('section');

    // Check if the section is use_admin_theme
+  if ($section == 'use_admin_theme'){
       ...
      $form['use_admin_theme'] = .......
+    }
  }

πŸ› Bug report
Status

Active

Version

1.5

Component

User interface

Created by

πŸ‡³πŸ‡΅Nepal sandeshyadav Dhangadhi, Kailali

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024