Warning: Undefined array key 1

Created on 12 April 2023, over 1 year ago
Updated 31 January 2024, 10 months ago

Problem/Motivation

When click on "Add another range", the AJAX request triggers this warning:

Warning: Undefined array key 1

It happens because RelativeDateItemProcessor::buildConfigurationForm() does not check if $relativeDates[$i] exists.

Steps to reproduce

  1. Edit a date facet with Customizable relative date item processor enabled.
  2. Click on "Add another range".

Proposed resolution

The code should check if the array key exists.

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024