Skip to content

Commit

Permalink
Merge pull request #5133 from KommunikativCh/bugfix/5085-error-by-del…
Browse files Browse the repository at this point in the history
…ete-assets-still-inuse

BUGFIX: Translate FlashMessage if asset is still in use in media browser inspector
  • Loading branch information
dlubitz authored Aug 16, 2024
2 parents 4d9c968 + c3d7037 commit b84f406
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Neos.Media.Browser/Classes/Controller/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@
*/
class AssetController extends ActionController
{
use CreateContentContextTrait;
use BackendUserTranslationTrait;
use BackendUserTranslationTrait {
BackendUserTranslationTrait::initializeObject as backendUserTranslationTraitInitializeObject;
}
use CreateContentContextTrait;
use AddTranslatedFlashMessageTrait;

protected const TAG_GIVEN = 0;
Expand Down Expand Up @@ -170,6 +173,8 @@ class AssetController extends ActionController
*/
public function initializeObject(): void
{
$this->backendUserTranslationTraitInitializeObject();

$domain = $this->domainRepository->findOneByActiveRequest();

// Set active asset collection to the current site's asset collection, if it has one, on the first view if a matching domain is found
Expand Down

0 comments on commit b84f406

Please sign in to comment.