Uninstalling the CSV export raises a deprecation on Drupal 10 when the report view has no uuid
Problem/motivation
When the report view was imported without a uuid, uninstalling ai_disclosure_csv_export saves the view and the duplicate uuid check of Drupal 10 queries on NULL. PHP reports "mb_strtolower(): Passing null to parameter #1 (closed)", and PHPUnit on Drupal 10 exits with 1 although every test passes. Drupal 11 does not show it.
Steps to reproduce
- On Drupal 10, strip the uuid from views.view.ai_disclosure_report.
- Uninstall ai_disclosure_csv_export.
- The deprecation is logged.
Proposed resolution
When the view has no uuid, remove the export displays from the config record directly and clear the Views cache. Views with a uuid keep the current path.
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.