EntityStorageException on paragraphs_asymmetric_translation_widgets_entity_translation_delete entityQuery

Created on 8 May 2023, about 1 year ago
Updated 8 December 2023, 7 months ago

Problem/Motivation

In Core 10 access checking is required to be set on entity queries otherwise an exception is thrown https://www.drupal.org/node/3201242 .

Steps to reproduce

Create a translation including translatable paragraphs and then try to delete it.

There is an EntityStorageException "Drupal\Core\Entity\EntityStorageException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck()."

Proposed resolution

Add accessCheck to the entityQuery inside paragraphs_asymmetric_translation_widgets_entity_translation_delete function.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇷Greece xeniksp

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

Comments & Activities

Production build 0.69.0 2024