Skip to content

Commit 09b0108

Browse files
authored
Merge pull request #12 from netlogix/fix/next-version-preview-behavior
2 parents 9796baa + 90cc097 commit 09b0108

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Classes/Job/Workspace/Publish.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ class Publish implements JobInterface
6868
*/
6969
protected ControllerContextFactory $controllerContextFactory;
7070

71+
/**
72+
* @var array
73+
* @Flow\InjectConfiguration(path="", package="Neos.Neos.Ui")
74+
*/
75+
protected array $neosUiSettings = [];
76+
7177
public function __construct(
7278
string $jobIdentifier,
7379
array $nodeContextPaths,
@@ -159,7 +165,7 @@ private function publish(): void
159165
$this->publishingService->publishNode($node, $targetWorkspace);
160166

161167
if ($node->getNodeType()->isAggregate()) {
162-
$updateNodePreviewUrl = new UpdateNodePreviewUrl();
168+
$updateNodePreviewUrl = new UpdateNodePreviewUrl($this->neosUiSettings['nextVersionPreviewBehavior'] ?? false);
163169
$updateNodePreviewUrl->setNode($node);
164170
$this->feedbackCollection->add($updateNodePreviewUrl);
165171
}

0 commit comments

Comments
 (0)