Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Translate FlashMessage if asset is still in use in media browser inspector #5133

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading