Skip to content

Commit 3790b60

Browse files
authored
Bugfix: Use workspace name from context
1 parent ee1dcf6 commit 3790b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Service/DocumentIdentifier/NodeIdentifierBasedDocumentIdentifierGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NodeIdentifierBasedDocumentIdentifierGenerator implements DocumentIdentifi
1919
{
2020
public function generate(NodeInterface $node, ?string $targetWorkspaceName = null): string
2121
{
22-
$workspaceName = $targetWorkspaceName ?: $node->getWorkspace()->getName();
22+
$workspaceName = $targetWorkspaceName ?: $node->getContext()->getWorkspace()->getName();
2323
$nodeIdentifier = $node->getIdentifier();
2424

2525
return sha1($nodeIdentifier . $workspaceName);

0 commit comments

Comments
 (0)