Warning: Undefined array key 1

Created on 24 April 2024, 9 months ago

Problem/Motivation

I'm getting the following error:
Warning: Undefined array key 1 in Drupal\content_moderation\Plugin\views\filter\ModerationStateFilter->opSimple() (line 183 of core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php).

Steps to reproduce

- Create a view
- Add an exposed filter of type moderation state
- Select "it's one of"
- Allow multiple selection
- Limit to the selected elements
- If you go to the view and filter by this exposed filter, you should get the error

Proposed resolution

Check if value is 0

🐛 Bug report
Status

Active

Version

9.5

Component
Content moderation 

Last updated 1 day ago

Created by

🇪🇸Spain guardiola86

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

Comments & Activities

Production build 0.71.5 2024