Clear values button error

Created on 9 May 2023, about 1 year ago
Updated 21 June 2023, about 1 year ago

Problem/Motivation

"Clear values" link in Config Page brings the error:

Warning: array_flip(): Can only flip string and integer values, entry skipped in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 278 of /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php)
TypeError: Illegal offset type in Drupal\Core\Entity\EntityStorageBase->load() (line 263 of /app/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php).

This started happening between version 2.12 and 2.13, in this code style fix:

https://git.drupalcode.org/project/config_pages/-/commit/4ab73f3d2ec1011...

Steps to reproduce

- Drupal 9.5.9 or 10.0.9
- Config pages 2.14
- Create a config page
- Click on Config pages library -> Edit
- Click "Clear values".

The error appears.

Proposed resolution

See attached patch / MR.

Remaining tasks

Test

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain budalokko Girona

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

Comments & Activities

Production build 0.69.0 2024