Undefined array key "id" in /app/web/core/modules/views/src/Plugin/ViewsHandlerManager.php on line 108

Created on 21 January 2025, 2 months ago

Problem/Motivation

Creating a view of "Search API stats" and adding a sorting field, such as "Number of found results", produces the following error:

Undefined array key "id" in /app/web/core/modules/views/src/Plugin/ViewsHandlerManager.php on line 108

Steps to reproduce

  1. Create a view of type "Search API stats"
  2. Try to add a sorting field, such as "Number of found results"

You will notice that the change is not saved, and your browser's console reports the error mentioned above.

Proposed resolution

Add an 'id' key to the 'sort' definitions in search_api_stats_views_data()

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia camilo.escobar

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