Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
[SRM-702] Fix for revision loading throws error on illegal offset typ…
Browse files Browse the repository at this point in the history
…e. (#120)

* [SRM-702] Fix for revision loading throws error on illegal offset type.
  • Loading branch information
MdNadimHossain authored Mar 7, 2023
1 parent 3c9cbac commit e1fa0f5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,7 @@ protected function getCurrentNode() : ?NodeInterface {
$node = $this->routeMatch->getParameter('node');
if ($route_name === 'entity.node.revision') {
try {
$vid = $this->routeMatch->getParameter('node_revision');
$node = $this->entityTypeManager->getStorage('node')
->loadRevision($vid);
$node = $this->routeMatch->getParameter('node_revision');
}
catch (Exception $exception) {
watchdog_exception('tide_site_preview', $exception);
Expand Down

0 comments on commit e1fa0f5

Please sign in to comment.