Skip to content

Commit

Permalink
Merge pull request #5106 from dlubitz/90/bugfix/asset-usage-controller
Browse files Browse the repository at this point in the history
BUGFIX AssetUsage in MediaBrowser
  • Loading branch information
kitsunet authored May 31, 2024
2 parents 26fd7f5 + 3ea9e4b commit a0a6186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Neos.Media.Browser/Classes/Controller/UsageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public function relatedNodesAction(AssetInterface $asset)

// FIXME: AssetUsageReference->workspaceName ?
$nodeAggregate = $contentRepository->getContentGraph($workspace->workspaceName)->findNodeAggregateById(
$usage->getContentStreamId(),
$usage->getNodeAggregateId()
);
try {
Expand All @@ -125,7 +124,6 @@ public function relatedNodesAction(AssetInterface $asset)
}

$subgraph = $contentRepository->getContentGraph($workspace->workspaceName)->getSubgraph(
$usage->getContentStreamId(),
$usage->getOriginDimensionSpacePoint()->toDimensionSpacePoint(),
VisibilityConstraints::withoutRestrictions()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<f:if condition="{nodeInformation.documentNode}">
<f:then>
<neos:link.node node="{nodeInformation.documentNode}" target="_blank"
title="{neos:backend.translate(id: 'workspaces.openPageInWorkspace', source: 'Modules', package: 'Neos.Neos', arguments: {0: nodeInformation.documentNode.workspace.title})}">
title="{neos:backend.translate(id: 'workspaces.openPageInWorkspace', source: 'Modules', package: 'Neos.Neos', arguments: {0: nodeInformation.workspace.workspaceTitle.value})}">
<span title="{f:render(partial: 'Module/Shared/DocumentBreadcrumb', arguments: {node: nodeInformation.documentNode})}" data-neos-toggle="tooltip">{nodeInformation.documentNode.label}</span>
<i class="fas fa-external-link-alt"></i>
</neos:link.node>
Expand Down

0 comments on commit a0a6186

Please sign in to comment.