Option to change required striping

Created on 22 April 2024, 7 months ago
Updated 7 May 2024, 7 months ago

Problem/Motivation

When the Views table settings form is saved with "Striping type" set to "None" it throws a field required error.

Steps to reproduce

Save a Views table settings form with "None" selected for Views Striping.

Proposed resolution

Add a setting for toggling "required," or set it to "FALSE" by default to allow "None" to pass as a valid option.

We are currently dealing with this in a form_alter, but would be good to allow "None" by default.

  // Allow the Views table settings form to save with "None"
  if ($form_id == 'views_ui_edit_display_form' && isset($form['options']['striping_type'])) {
    $form['options']['striping_type']['#required'] = FALSE;
  }
Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada darkodev

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