PHP Notice with default broken links report view config

Created on 11 November 2021, about 3 years ago
Updated 11 September 2023, over 1 year ago

Problem/Motivation

When filtering the broken links report by status code using the grouped filter ("Result"), you receive this error message:

Notice: Undefined index: min in Drupal\views\Plugin\views\filter\NumericFilter->acceptExposedInput() (line 432 of /var/www/web/core/modules/views/src/Plugin/views/filter/NumericFilter.php)

Steps to reproduce

Load the report with the specified filter, e.g. /admin/reports/linkchecker?result=1

Proposed resolution

Fix the default view config

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedfordgif

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

Comments & Activities

Not all content is available!

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

  • Attached a patch for those who might require one. Feel free to expand on the patch and adding more validation checks to the structure of the views before attempting the update. The patch should apply to both 1.x and 2.x.

Production build 0.71.5 2024