Skip to content
Snippets Groups Projects
Commit b2ab40d3 authored by Helmut Hummel's avatar Helmut Hummel
Browse files

[BUGFIX] Don't call ResourceFactory::getStorageObject twice

In http://review.typo3.org/11011 a plain DB call
that fetched the storage record was replaced with
usage of StorageRepository::findByUid, which in
turn calls ResourceFactory::getStorageObject again.

This leads to all events also called twice.

To avoid this a new internal method is introduced
on StorageRepository, which only fetches the storage
row again.

Resolves: #92201
Releases: master, 10.4, 9.5
Change-Id: Ibce6e8d9a0b5ce7abb0f86d80ac42a1a86d47e35
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65580


Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarNicole Cordes <typo3@cordes.co>
Reviewed-by: default avatarHelmut Hummel <typo3@helhum.io>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarNicole Cordes <typo3@cordes.co>
Tested-by: default avatarHelmut Hummel <typo3@helhum.io>
parent 38675b35
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment