Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EWPP-1996: Fix DefaultNodeMetadataEventSubscriber. #1042

Merged
merged 1 commit into from
Feb 23, 2022
Merged

Conversation

22Alexandra
Copy link
Contributor

No description provided.

@@ -75,7 +75,7 @@ public function getNode(NodeMetadataEvent $event): void {

if ($this->currentRouteMatch->getRouteName() === 'entity.node.revision') {
$node_revision = $this->currentRouteMatch->getParameter('node_revision');
$node = $this->entityTypeManager->getStorage('node')->loadRevision($node_revision);
$node = $this->entityTypeManager->getStorage('node')->loadRevision($node_revision->getRevisionId());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see why this is not failing any test with 9.2 since with that version I believe we used to get an ID and not an entity object as a route parameter. if you confirm there is a difference between 9.2 and 9.3, you should check here if it's an entity or just an ID and put a comment wy.

upchuk
upchuk previously approved these changes Feb 21, 2022
@22Alexandra 22Alexandra merged commit 09064e4 into 3.x Feb 23, 2022
@22Alexandra 22Alexandra deleted the EWPP-1996 branch February 23, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants