Skip to content

Commit

Permalink
Merge pull request #519 from BlackbitDevs/bugfix/asset_type_change_no…
Browse files Browse the repository at this point in the history
…t_allowed

[Asset upload] Provide translation parameters in correct order
  • Loading branch information
alexz707 authored May 3, 2024
2 parents aecaa4a + 1bafe32 commit 4b89a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Admin/Asset/AssetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public function replaceAssetAction(Request $request, TranslatorInterface $transl
if ($newType != $asset->getType()) {
return $this->adminJson([
'success' => false,
'message' => sprintf($translator->trans('asset_type_change_not_allowed', [], 'admin'), $asset->getType(), $newType),
'message' => sprintf($translator->trans('asset_type_change_not_allowed', [], 'admin'), $newType, $asset->getType()),
]);
}

Expand Down

0 comments on commit 4b89a1a

Please sign in to comment.