Undefined array key "type" in Drupal\Core\Render\Element\Date::processDate()

Created on 6 March 2023, over 1 year ago
Updated 2 July 2024, 5 months ago

Problem/Motivation

When the views containing date expose filters has rendered for the first time, we get this warning:

Warning: Undefined array key "type" in Drupal\Core\Render\Element\Date::processDate() (line 71 of core/lib/Drupal/Core/Render/Element/Date.php).

Steps to reproduce

On Drupal 9.5.3

  1. enable the date_popup module
  2. create a custom view with at least one date exposed filter.

Proposed resolution

Add $element['#attributes']['type'] = 'date'; in the DatePopupTrait

Remaining tasks

Create the patch.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024