Skip to content

Commit f099591

Browse files
committed
fix: Pass filtered $nodeContextPaths on to publishAction()
The proceed() call would sometimes throw an exception because of context paths that cannot be converted to NodeInterface. As we already filter the context paths, we may as well use the clean list for further usage.
1 parent cd6548d commit f099591

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Classes/Aspect/WorkspaceControllerPublishAspect.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function publish(JoinPointInterface $joinPoint)
8181
assert($controller instanceof BackendServiceController);
8282

8383
$nodeContextPaths = $this->filterExistingContextPaths($joinPoint->getMethodArgument('nodeContextPaths'));
84+
$joinPoint->setMethodArgument('nodeContextPaths', $nodeContextPaths);
8485
if (count($nodeContextPaths) === 0) {
8586
$success = new Success();
8687
$success->setMessage('No nodes to publish');

0 commit comments

Comments
 (0)