Skip to content
Snippets Groups Projects
Commit 4e3836aa authored by Marcel Emmerich's avatar Marcel Emmerich
Browse files

Issue #3288502 by Project Update Bot, maacl, DishaKatariya, PCate: Automated...

Issue #3288502 by Project Update Bot, maacl, DishaKatariya, PCate: Automated Drupal 10 compatibility fixes
parent 632c9be6
No related branches found
No related tags found
1 merge request!15Issue #3288502: Automated Drupal 10 compatibility fixes
......@@ -6,6 +6,6 @@
],
"minimum-stability": "dev",
"require": {
"drupal/core": "^9.2"
"drupal/core": "^9.3 || ^10"
}
}
name: 'Media Files Handler'
type: module
description: 'Make sure all files get deleted on updates of a media entity'
core_version_requirement: ^9.2
core_version_requirement: ^9.3 || ^10
package: 'Media'
......@@ -161,6 +161,7 @@ class HandlerService {
// Get all revisions to not overlook an old file.
$entity_revisions = $this->mediaStorage->getQuery()
->accessCheck(FALSE)
->allRevisions()
->condition($entity->getEntityType()->getKey('id'), $entity->id())
->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment