CategoryAutocompleteController should check that user actually provided query string

Created on 6 May 2024, 6 months ago
Updated 17 July 2024, 4 months ago

Steps to reproduce

1. Login as admin user
2. Navigate to /block-category/autocomplete page.
3. Go to the "Recent log messages" page /admin/reports/dblog

The following error will appear.
Deprecated function: stripos(): Passing null to parameter #2 ($needle) of type string is deprecated in Drupal\block\Controller\CategoryAutocompleteController->autocomplete() (line 56 of /var/www/html/core/modules/block/src/Controller/CategoryAutocompleteController.php)

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Block 

Last updated about 6 hours ago

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024