Undefined array key "type" in Drupal\search_api\Plugin\views\filter\SearchApiDate->opBetween

Created on 31 October 2023, about 1 year ago
Updated 11 November 2023, about 1 year ago

Problem/Motivation

Under some circumstances $this->value['type'] is undefined, resulting in the warning

Warning: Undefined array key "type" in Drupal\search_api\Plugin\views\filter\SearchApiDate->opBetween() (line 103 of modules/contrib/search_api/src/Plugin/views/filter/SearchApiDate.php).

It should have the same sanity check as $this->value['max'] just above it.

Steps to reproduce

Unknown.

Proposed resolution

Add a sanity check that matches the one just above it.

Remaining tasks

Make a fork.

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Views integration

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States BenStallings

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

Comments & Activities

Production build 0.71.5 2024